From: Tony Breeds Date: Tue, 12 Jun 2012 04:56:25 +0000 (+1000) Subject: Fix warnings in load_elf{32,64}() X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=commitdiff_plain;h=677037569e92173195efa04244cd4291721d8f20;hp=e760dab27fdbb9b4dd72a4c4241cd0ea4ba857d6 Fix warnings in load_elf{32,64}() Signed-off-by: Tony Breeds --- 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;