From 677037569e92173195efa04244cd4291721d8f20 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Tue, 12 Jun 2012 14:56:25 +1000 Subject: [PATCH 1/1] Fix warnings in load_elf{32,64}() Signed-off-by: Tony Breeds --- second/yaboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/second/yaboot.c b/second/yaboot.c index 469b1af..ec0c085 100644 --- a/second/yaboot.c +++ b/second/yaboot.c @@ -1197,7 +1197,7 @@ load_elf32(struct boot_file_t *file, loadinfo_t *loadinfo) { int i; Elf32_Ehdr *e = &(loadinfo->elf.elf32hdr); - Elf32_Phdr *p, *ph; + Elf32_Phdr *p, *ph = NULL; int size = sizeof(Elf32_Ehdr) - sizeof(Elf_Ident); unsigned long loadaddr; @@ -1330,7 +1330,7 @@ load_elf64(struct boot_file_t *file, loadinfo_t *loadinfo) { int i; Elf64_Ehdr *e = &(loadinfo->elf.elf64hdr); - Elf64_Phdr *p, *ph; + Elf64_Phdr *p, *ph = NULL; int size = sizeof(Elf64_Ehdr) - sizeof(Elf_Ident); unsigned long loadaddr; -- 2.39.2