fix uninitialized warning

This commit is contained in:
BVK Chaitanya 2010-04-14 13:38:05 +05:30
parent 8c4a72d4b5
commit 851395d865

View file

@ -80,7 +80,7 @@ SUFFIX (grub_freebsd_load_elfmodule_obj) (grub_file_t file, int argc,
{ {
Elf_Ehdr e; Elf_Ehdr e;
Elf_Shdr *s; Elf_Shdr *s;
char *shdr; char *shdr = 0;
grub_addr_t curload, module; grub_addr_t curload, module;
grub_err_t err; grub_err_t err;
@ -148,7 +148,7 @@ SUFFIX (grub_freebsd_load_elfmodule) (grub_file_t file, int argc, char *argv[],
{ {
Elf_Ehdr e; Elf_Ehdr e;
Elf_Shdr *s; Elf_Shdr *s;
char *shdr; char *shdr = 0;
grub_addr_t curload, module; grub_addr_t curload, module;
grub_err_t err; grub_err_t err;
@ -223,7 +223,7 @@ SUFFIX (grub_freebsd_load_elf_meta) (grub_file_t file, grub_addr_t *kern_end)
grub_err_t err; grub_err_t err;
Elf_Ehdr e; Elf_Ehdr e;
Elf_Shdr *s; Elf_Shdr *s;
char *shdr; char *shdr = 0;
unsigned symoff, stroff, symsize, strsize; unsigned symoff, stroff, symsize, strsize;
grub_addr_t curload; grub_addr_t curload;
grub_freebsd_addr_t symstart, symend, symentsize, dynamic; grub_freebsd_addr_t symstart, symend, symentsize, dynamic;