summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-06-08 22:14:21 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-06-13 14:10:36 +0100
commit1a1be3e66ff810f6fabcb04f48621acb4673cf1f (patch)
tree0e7ae1c31a77eb3f75064a0d766619cbfdedb4c0
parenta583906233e8e321dd1462e356e34de9c0697aef (diff)
downloadlibguestfs-1a1be3e66ff810f6fabcb04f48621acb4673cf1f.tar.gz
libguestfs-1a1be3e66ff810f6fabcb04f48621acb4673cf1f.tar.xz
libguestfs-1a1be3e66ff810f6fabcb04f48621acb4673cf1f.zip
Coverity: Check return value of sysroot_path.
For some reason we were checking the parameter! (cherry picked from commit 7fae594df719d1d81a043c4d0280b359f750facb)
-rw-r--r--daemon/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/mount.c b/daemon/mount.c
index ccace75e..1238ad2b 100644
--- a/daemon/mount.c
+++ b/daemon/mount.c
@@ -349,7 +349,7 @@ do_mount_loop (const char *file, const char *mountpoint)
}
buf = sysroot_path (file);
- if (!file) {
+ if (!buf) {
reply_with_perror ("malloc");
free (mp);
return -1;