From 1a1be3e66ff810f6fabcb04f48621acb4673cf1f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 8 Jun 2011 22:14:21 +0100 Subject: [PATCH] Coverity: Check return value of sysroot_path. For some reason we were checking the parameter! (cherry picked from commit 7fae594df719d1d81a043c4d0280b359f750facb) --- daemon/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/mount.c b/daemon/mount.c index ccace75..1238ad2 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; -- 1.8.3.1