public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* readelf.c 'ext' may be used uninitialized
@ 2023-09-19 22:58 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-09-19 22:58 UTC (permalink / raw)
  To: binutils

	* 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;

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-19 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-19 22:58 readelf.c 'ext' may be used uninitialized Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).