Fix warning: ‘relocs_size’ may be used uninitialized in this function

This commit is contained in:
ggow
2019-04-20 01:05:31 +01:00
parent b7abd44b0c
commit 6b0b7bcacd
+1 -1
View File
@@ -101,7 +101,7 @@ do_func(Elf_Ehdr *ehdr, char const *const fname, table_sort_t custom_sort)
Elf_Sym *sort_needed_sym;
Elf_Shdr *sort_needed_sec;
Elf_Rel *relocs = NULL;
int relocs_size;
int relocs_size = 0;
uint32_t *sort_done_location;
const char *secstrtab;
const char *strtab;