mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
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:
1 parent
ebd92af8c3
commit
7d39938474
1 file changed
+1
-1
@@ -521,7 +521,7 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
|
|||||||
{
|
{
|
||||||
grub_size_t size = 0;
|
grub_size_t size = 0;
|
||||||
grub_err_t err;
|
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;
|
grub_relocator_chunk_t ch;
|
||||||
|
|
||||||
if (argc == 0)
|
if (argc == 0)
|
||||||
|
|||||||
Reference in new issue
Block a user