From 54f94570b65095c5b9251981956102d3f2864f90 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Fri, 16 Mar 2012 21:59:18 -0700 Subject: [PATCH] Fix seg fault with bare kboot.conf variables Signed-off-by: Geoff Levand --- discover/kboot-parser.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2