]> git.ozlabs.org Git - petitboot/blobdiff - discover/kboot-parser.c
Use static array for parsers
[petitboot] / discover / kboot-parser.c
index 7c7cb5d0aa08f645c81ac12f0d441f44672c9ce5..025f13b6afa1bd8e32606da013f6dc2a15f4f667 100644 (file)
@@ -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;
 
@@ -148,4 +153,4 @@ static int kboot_parse(struct discover_context *dc)
        return rc;
 }
 
-define_parser(kboot, 98, kboot_parse);
+define_parser(kboot, kboot_parse);