parser/yaboot: Fix check for image presence
[petitboot] / discover / yaboot-parser.c
index 3696abff9d7c6e9489bbce490a578b25416647ae..39fba63055b12f08332e88ddfc30e899306d8050 100644 (file)
@@ -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;
        }