X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fboot.c;h=e67ed00eec6b05de9845490c1b53241184675988;hp=02618cce1251fd070e3baec29c27bac762141c45;hb=359f12f9eb0440294a8be1b78ade1b69926d2896;hpb=3ea411971ea7db66c44527aa720d82567b7a1a5a diff --git a/discover/boot.c b/discover/boot.c index 02618cc..e67ed00 100644 --- a/discover/boot.c +++ b/discover/boot.c @@ -103,6 +103,7 @@ int boot(void *ctx, struct boot_option *opt, struct boot_command *cmd, char *image, *initrd, *args; int result; + local_initrd = NULL; image = NULL; initrd = NULL; args = NULL; @@ -134,7 +135,6 @@ int boot(void *ctx, struct boot_option *opt, struct boot_command *cmd, if (!local_image) goto no_load; - local_initrd = NULL; if (initrd) { local_initrd = load_file(NULL, initrd, &clean_initrd); if (!local_initrd)