]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: undefined variable fix
authorJan Tulak <jtulak@redhat.com>
Tue, 18 Aug 2015 07:53:17 +0000 (17:53 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 18 Aug 2015 07:53:17 +0000 (17:53 +1000)
Typo fix, which wasn't catch 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 has
'fromname' on both arguments of realpath, I choose the same approach
when fixing it.

Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxcmd/paths.c

index c56b06b9eb81525850fbf2c76b1ce5aeedd48ea2..5c65737a50de89f29727c59f1831831a71a4a4d9 100644 (file)
@@ -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 &&