From: Harald Hoyer Date: Fri, 1 Mar 2013 16:05:58 +0000 (+0100) Subject: fstab-generator: fix commit 92094b7 X-Git-Tag: upstream/198~127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fb5a0feb4bbbc670c212acc9e6fcfb46465cc2f;p=platform%2Fupstream%2Fsystemd.git fstab-generator: fix commit 92094b7 --- diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index d4470f4..af7276d 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -450,7 +450,7 @@ static int parse_new_root_from_proc_cmdline(void) { } 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.