chiark / gitweb /
fstab-generator: fix commit 92094b7
authorHarald Hoyer <harald@redhat.com>
Fri, 1 Mar 2013 16:05:58 +0000 (17:05 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 1 Mar 2013 16:07:44 +0000 (17:07 +0100)
src/fstab-generator/fstab-generator.c

index d4470f4fb8b3f8b2f4afa6b25114d734d86b5fe4..af7276daa7c82212bfedab875b8924641f122542 100644 (file)
@@ -450,7 +450,7 @@ static int parse_new_root_from_proc_cmdline(void) {
         }
 
         type = strdup("auto");
         }
 
         type = strdup("auto");
-        if (!opts || !type)
+        if (!type)
                 return log_oom();
 
         /* root= and roofstype= may occur more than once, the last instance should take precedence.
                 return log_oom();
 
         /* root= and roofstype= may occur more than once, the last instance should take precedence.