summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--discover/boot.c2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud