[PATCH 01/11] xfsprogs: undefined variable fix
Jan Tulak
jtulak at redhat.com
Mon Aug 17 11:23:16 CDT 2015
Typo fix, which wasn't caught earlier due to #ifdef branching. The
'rmnttomname' does not exists anywhere and looks like a hybrid between
rmntfromname and rmntonname. And because the previous 'if' has
'fromname' on both arguments of realpath, I choosed the same approach
when fixing it.
Signed-off-by: Jan Tulak <jtulak at redhat.com>
---
libxcmd/paths.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libxcmd/paths.c b/libxcmd/paths.c
index c56b06b..5c65737 100644
--- a/libxcmd/paths.c
+++ b/libxcmd/paths.c
@@ -364,7 +364,7 @@ fs_table_initialise_mounts(
continue;
if (!realpath(stats[i].f_mntfromname, rmntfromname))
continue;
- if (!realpath(stats[i].f_mntonname, rmnttomname)))
+ if (!realpath(stats[i].f_mntonname, rmntonname))
continue;
if (path &&
--
2.4.5
More information about the xfs
mailing list