X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fyaboot-parser.c;h=39fba63055b12f08332e88ddfc30e899306d8050;hp=3696abff9d7c6e9489bbce490a578b25416647ae;hb=404c07fc44449be7b011d1961280ef9c96e0760d;hpb=37d865eb008f746a0b013557312c6b44c7236eb7 diff --git a/discover/yaboot-parser.c b/discover/yaboot-parser.c index 3696abf..39fba63 100644 --- a/discover/yaboot-parser.c +++ b/discover/yaboot-parser.c @@ -175,7 +175,8 @@ static void yaboot_process_pair(struct conf_context *conf, const char *name, return; } - if (!opt->boot_image) { + /* all other processing requires an image */ + if (!opt) { pb_log("%s: unknown name: %s\n", __func__, name); return; }