diff options
author | Geoff Levand <geoff@infradead.org> | 2012-03-16 21:59:18 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2012-03-16 22:05:06 -0700 |
commit | 54f94570b65095c5b9251981956102d3f2864f90 (patch) | |
tree | aaeefa4223c72b5edcc6ed7a367094942f2967e9 /discover/kboot-parser.c | |
parent | de0c5004fb5ac4a7afc7e231876ff0a8eead4e2c (diff) | |
download | talos-petitboot-54f94570b65095c5b9251981956102d3f2864f90.tar.gz talos-petitboot-54f94570b65095c5b9251981956102d3f2864f90.zip |
Fix seg fault with bare kboot.conf variables
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/kboot-parser.c')
-rw-r--r-- | discover/kboot-parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |