Fix compile warning
This commit is contained in:
parent
260b61e9d8
commit
66e99b6d63
@ -391,6 +391,7 @@ mountinfo(int argc, char **argv)
|
|||||||
int opt;
|
int opt;
|
||||||
int result;
|
int result;
|
||||||
bool quiet;
|
bool quiet;
|
||||||
|
char *this_path;
|
||||||
|
|
||||||
/* Ensure that we are only quiet when explicitly told to be */
|
/* Ensure that we are only quiet when explicitly told to be */
|
||||||
unsetenv("EINFO_QUIET");
|
unsetenv("EINFO_QUIET");
|
||||||
@ -458,7 +459,7 @@ mountinfo(int argc, char **argv)
|
|||||||
if (argv[optind][0] != '/')
|
if (argv[optind][0] != '/')
|
||||||
eerrorx("%s: `%s' is not a mount point",
|
eerrorx("%s: `%s' is not a mount point",
|
||||||
argv[0], argv[optind]);
|
argv[0], argv[optind]);
|
||||||
char *this_path = argv[optind++];
|
this_path = argv[optind++];
|
||||||
if (realpath(this_path, real_path))
|
if (realpath(this_path, real_path))
|
||||||
this_path = real_path;
|
this_path = real_path;
|
||||||
rc_stringlist_add(args.mounts, this_path);
|
rc_stringlist_add(args.mounts, this_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user