Coverity: Check return value of sysroot_path.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 8 Jun 2011 21:14:21 +0000 (22:14 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 13 Jun 2011 13:10:36 +0000 (14:10 +0100)
For some reason we were checking the parameter!
(cherry picked from commit 7fae594df719d1d81a043c4d0280b359f750facb)

daemon/mount.c

index ccace75..1238ad2 100644 (file)
@@ -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;