From: Geoff Levand Date: Sat, 17 Mar 2012 04:59:18 +0000 (-0700) Subject: Fix seg fault with bare kboot.conf variables X-Git-Tag: v1.0.0~779 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=54f94570b65095c5b9251981956102d3f2864f90;hp=de0c5004fb5ac4a7afc7e231876ff0a8eead4e2c Fix seg fault with bare kboot.conf variables Signed-off-by: Geoff Levand --- diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index 7c7cb5d..429ae09 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -21,6 +21,11 @@ static void kboot_process_pair(struct conf_context *conf, const char *name, const char *root; struct boot_option *opt; + /* fixup for bare values */ + + if (!name) + return; + if (conf_param_in_list(ignored_names, name)) return;