1 |
commit: 66e99b6d637edc33047398b467f2b22bc2f04b60 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 17 22:06:18 2011 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 17 22:06:18 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=66e99b6d |
7 |
|
8 |
Fix compile warning |
9 |
|
10 |
--- |
11 |
src/rc/mountinfo.c | 3 ++- |
12 |
1 files changed, 2 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c |
15 |
index adce434..9382738 100644 |
16 |
--- a/src/rc/mountinfo.c |
17 |
+++ b/src/rc/mountinfo.c |
18 |
@@ -391,6 +391,7 @@ mountinfo(int argc, char **argv) |
19 |
int opt; |
20 |
int result; |
21 |
bool quiet; |
22 |
+ char *this_path; |
23 |
|
24 |
/* Ensure that we are only quiet when explicitly told to be */ |
25 |
unsetenv("EINFO_QUIET"); |
26 |
@@ -458,7 +459,7 @@ mountinfo(int argc, char **argv) |
27 |
if (argv[optind][0] != '/') |
28 |
eerrorx("%s: `%s' is not a mount point", |
29 |
argv[0], argv[optind]); |
30 |
- char *this_path = argv[optind++]; |
31 |
+ this_path = argv[optind++]; |
32 |
if (realpath(this_path, real_path)) |
33 |
this_path = real_path; |
34 |
rc_stringlist_add(args.mounts, this_path); |