From 66e99b6d637edc33047398b467f2b22bc2f04b60 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 17 Nov 2011 16:06:18 -0600 Subject: [PATCH] Fix compile warning --- src/rc/mountinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);