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-09 10:53:22 +0100 |
commit | 7fae594df719d1d81a043c4d0280b359f750facb (patch) | |
tree | 394995606730a77a94447ac0c207d8bea0c9a946 | |
parent | 3a5bd5aba23583e64bfaabc906ca95b0f9d37578 (diff) | |
download | libguestfs-7fae594df719d1d81a043c4d0280b359f750facb.tar.gz libguestfs-7fae594df719d1d81a043c4d0280b359f750facb.tar.xz libguestfs-7fae594df719d1d81a043c4d0280b359f750facb.zip |
Coverity: Check return value of sysroot_path.
For some reason we were checking the parameter!
-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 a379d39e..098283a0 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -352,7 +352,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; |