Skip to content

Commit

Permalink
dwarf: Fix warning about -Wmaybe-uninitialized.
Browse files Browse the repository at this point in the history
```
src/dwarf/Gfind_proc_info-lsb.c:536:16: warning: 'eh_frame' may be used uninitialized in this function [-Wmaybe-uninitialized]
   Elf_W (Addr) eh_frame;
                ^
```

Introduced-in: 25413c7
  • Loading branch information
bertwesarg authored and Dave Watson committed Jan 24, 2017
1 parent 4dea379 commit 2e60ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dwarf/Gfind_proc_info-lsb.c
Expand Up @@ -533,7 +533,7 @@ dwarf_find_eh_frame_section(struct dl_phdr_info *info)
int fd;
Elf_W (Ehdr) ehdr;
Elf_W (Half) shstrndx;
Elf_W (Addr) eh_frame;
Elf_W (Addr) eh_frame = 0;
unsigned int i;
const char *file = info->dlpi_name;
char secname[EH_FRAME_LEN];
Expand Down

0 comments on commit 2e60ca3

Please sign in to comment.