X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fboot.c;h=02618cce1251fd070e3baec29c27bac762141c45;hp=6109562491db79855655a4bf8431e07c20bd1e0f;hb=3ea411971ea7db66c44527aa720d82567b7a1a5a;hpb=dbf139003bd6c8c6ca03ae7f533aa74afd8060c6 diff --git a/discover/boot.c b/discover/boot.c index 6109562..02618cc 100644 --- a/discover/boot.c +++ b/discover/boot.c @@ -117,9 +117,9 @@ int boot(void *ctx, struct boot_option *opt, struct boot_command *cmd, } if (cmd->initrd_file) { - image = talloc_strdup(ctx, cmd->initrd_file); + initrd = talloc_strdup(ctx, cmd->initrd_file); } else if (opt && opt->initrd_file) { - image = talloc_strdup(ctx, opt->initrd_file); + initrd = talloc_strdup(ctx, opt->initrd_file); } if (cmd->boot_args) {