mirror of
https://github.com/systemd/systemd.git
synced 2025-02-23 13:57:33 +03:00
mount-util: reduce scope of variable
This commit is contained in:
parent
f59551f18e
commit
25086b4c17
@ -651,7 +651,6 @@ int mount_option_mangle(
|
||||
|
||||
const struct libmnt_optmap *map;
|
||||
_cleanup_free_ char *ret = NULL;
|
||||
const char *p;
|
||||
int r;
|
||||
|
||||
/* This extracts mount flags from the mount options, and store
|
||||
@ -676,8 +675,7 @@ int mount_option_mangle(
|
||||
if (!map)
|
||||
return -EINVAL;
|
||||
|
||||
p = options;
|
||||
for (;;) {
|
||||
for (const char *p = options;;) {
|
||||
_cleanup_free_ char *word = NULL;
|
||||
const struct libmnt_optmap *ent;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user