From: Richard W.M. Jones Date: Wed, 8 Jun 2011 21:14:21 +0000 (+0100) Subject: Coverity: Check return value of sysroot_path. X-Git-Tag: 1.10.4~10 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=01cdc3d593146a60e7c7e26b91b96625cda0ba1b;p=libguestfs.git Coverity: Check return value of sysroot_path. For some reason we were checking the parameter! (cherry picked from commit 7fae594df719d1d81a043c4d0280b359f750facb) --- diff --git a/daemon/mount.c b/daemon/mount.c index a379d39..098283a 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;