diff options
author | William Hubbs <williamh@gentoo.org> | 2011-11-17 16:06:18 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-11-17 16:06:18 -0600 |
commit | 66e99b6d637edc33047398b467f2b22bc2f04b60 (patch) | |
tree | 1ff6002f7abac8cfdf6524f13de921ff95f8945f /src/rc | |
parent | 260b61e9d87510b869f2b7b8fefd281ea695f88e (diff) |
Fix compile warning
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/mountinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c index adce4344..9382738b 100644 --- a/src/rc/mountinfo.c +++ b/src/rc/mountinfo.c @@ -391,6 +391,7 @@ mountinfo(int argc, char **argv) int opt; int result; bool quiet; + char *this_path; /* Ensure that we are only quiet when explicitly told to be */ unsetenv("EINFO_QUIET"); @@ -458,7 +459,7 @@ mountinfo(int argc, char **argv) if (argv[optind][0] != '/') eerrorx("%s: `%s' is not a mount point", argv[0], argv[optind]); - char *this_path = argv[optind++]; + this_path = argv[optind++]; if (realpath(this_path, real_path)) this_path = real_path; rc_stringlist_add(args.mounts, this_path); |