fix missing variable initialisation in elfdump
authorYann Rouillard <yann@pleiades.fr.eu.org>
Fri, 10 May 2013 02:04:22 +0000 (04:04 +0200)
committerYann Rouillard <yann@pleiades.fr.eu.org>
Fri, 10 May 2013 02:04:22 +0000 (04:04 +0200)
scripts/elfdump.py

index 400a29eaf06c8b2f974d40493d35729d9adbd88b..a7a14dadf1ff665fc5f6b5bbcf8dace61d839219 100755 (executable)
@@ -64,6 +64,7 @@ class Elfdump(object):
     def display_syminfo_table(self):
         """ Display the SUNW syminfo tables contained in the file
         """
+        syminfo_section = None
         for section in self.elffile.iter_sections():
             if isinstance(section, SUNWSyminfoTableSection):
                 syminfo_section = section