discover/pxe-parser: All options are name <space> value pairs
[petitboot] / discover / pxe-parser.c
index c300b697d0eeb769ab4986bc9e06397d4071cae6..67cb7882f46b77c85da01a8db7faa076773df7d3 100644 (file)
@@ -21,6 +21,9 @@ static void pxe_process_pair(struct conf_context *ctx,
        struct discover_boot_option *opt = ctx->parser_info;
        struct pb_url *url;
 
+       if (!name)
+               return;
+
        if (streq(name, "LABEL")) {
                if (opt)
                        pxe_finish(ctx);