1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-28 12:11:45 +02:00

dwarf: Fix warning about -Wmaybe-uninitialized.

```
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: 25413c729a
This commit is contained in:
Bert Wesarg 2017-01-23 22:55:47 +01:00 committed by Dave Watson
parent 4dea379ad9
commit 2e60ca34d2

View file

@ -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];