grub-core/loader/i386/xen.c: Initialized initrd_ctx so we don't free a random pointer from the stack.

Signed-off-by: Sarah Newman <srn@prgmr.com>
This commit is contained in:
Sarah Newman authored and Andrei Borzenkov committed 2015-03-28 07:14:17 +03:00
1 parent ebd92af8c3
commit 7d39938474
1 file changed
+1 -1
+1 -1
View File
@@ -521,7 +521,7 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
{
grub_size_t size = 0;
grub_err_t err;
struct grub_linux_initrd_context initrd_ctx;
struct grub_linux_initrd_context initrd_ctx = { 0, 0, 0 };
grub_relocator_chunk_t ch;
if (argc == 0)