X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fcommon%2Fdiscover-client.c;h=fea8c573c7d18516657dca663c94525164a1ccda;hp=90cd3b419101c051e35f5da1539eb975673c22ee;hb=03d135e3d7528184062cc16949febd76c393c30d;hpb=bc4114e2235163bd88456c25cc0a908d86151f93 diff --git a/ui/common/discover-client.c b/ui/common/discover-client.c index 90cd3b4..fea8c57 100644 --- a/ui/common/discover-client.c +++ b/ui/common/discover-client.c @@ -264,8 +264,7 @@ static void create_boot_command(struct boot_command *command, const struct boot_option *boot_option, const struct pb_boot_data *data) { - - command->option_id = boot_option->id; + command->option_id = boot_option ? boot_option->id : NULL; command->boot_image_file = data->image; command->initrd_file = data->initrd; command->dtb_file = data->dtb;