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 2015-03-27 12:56:43 -07:00 committed by Andrei Borzenkov
parent ebd92af8c3
commit 7d39938474

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)