diff options
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/elf/section.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/format/elf/section.c b/src/format/elf/section.c index 2b46d9e..60bd67a 100644 --- a/src/format/elf/section.c +++ b/src/format/elf/section.c @@ -93,9 +93,8 @@ bool find_elf_section_by_name(const GElfFormat *format, const char *name, elf_sh secname = extract_name_from_elf_string_section(format, &strings, ELF_SHDR(format, *section, sh_name)); - /* FIXME : if secname == NULL */ - - result = (strcmp(name, secname) == 0); + if (secname != NULL) + result = (strcmp(name, secname) == 0); } |