1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

mount-util: reduce scope of variable

This commit is contained in:
Yu Watanabe 2021-06-21 20:19:26 +09:00
parent f59551f18e
commit 25086b4c17

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;