summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/arch/i386/image/bzimage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/i386/image/bzimage.c b/src/arch/i386/image/bzimage.c
index 3b484b174..0618dbf4e 100644
--- a/src/arch/i386/image/bzimage.c
+++ b/src/arch/i386/image/bzimage.c
@@ -386,6 +386,7 @@ static size_t bzimage_load_initrd ( struct image *image,
offset = ( ( sizeof ( cpio ) + name_len + 0x03 ) & ~0x03 );
} else {
offset = 0;
+ name_len = 0;
}
/* Copy in initrd image body (and cpio header if applicable) */