diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-06-08 22:14:21 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-06-13 14:10:36 +0100 |
commit | 1a1be3e66ff810f6fabcb04f48621acb4673cf1f (patch) | |
tree | 0e7ae1c31a77eb3f75064a0d766619cbfdedb4c0 | |
parent | a583906233e8e321dd1462e356e34de9c0697aef (diff) | |
download | libguestfs-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.c | 2 |
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; |