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>
Thu, 9 Jun 2011 09:53:22 +0000 (10:53 +0100)
For some reason we were checking the parameter!

daemon/mount.c

index a379d39..098283a 100644 (file)
@@ -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;