mount-util: reduce scope of variable

This commit is contained in:
Yu Watanabe
2021-06-21 21:34:10 +09:00
parent f59551f18e
commit 25086b4c17
+1 -3
View File
@@ -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;