bugfix: potential reference to uninitialized variables

This commit is contained in:
Yacine Elhamer
2023-04-02 21:56:28 +01:00
parent 270077bc73
commit 74284e9dad

View File

@@ -776,6 +776,7 @@ def guess_os_from_needed_dependencies(elf) -> Optional[OS]:
def guess_os_from_symtab(elf) -> Optional[OS]:
SHT_SYMTAB = 0x2
SHT_STRTAB = 0x3
strtab_buf = symtab_buf = None
for shdr in elf.section_headers:
if shdr.type == SHT_STRTAB: