From: Alan Modra Date: Tue, 19 Sep 2023 00:20:57 +0000 (+0930) Subject: readelf.c 'ext' may be used uninitialized X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=765a0c0a86c7bd32d7ad7af06d22dda41f6a9172;p=binutils-gdb.git readelf.c 'ext' may be used uninitialized * readelf.c (display_lto_symtab): Init ext. --- diff --git a/binutils/readelf.c b/binutils/readelf.c index 5c69efcbcd7..e9935c010cf 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -13853,7 +13853,7 @@ display_lto_symtab (Filedata * filedata, return false; /* Look for extended data for the symbol table. */ - Elf_Internal_Shdr * ext; + Elf_Internal_Shdr * ext = NULL; void * ext_data_orig = NULL; char * ext_data = NULL; char * ext_data_end = NULL;