2012-05-25 Sriraman Tallam <tmsriram@google.com>
authorSriraman Tallam <tmsriram@google.com>
Fri, 25 May 2012 22:53:52 +0000 (22:53 +0000)
committerSriraman Tallam <tmsriram@google.com>
Fri, 25 May 2012 22:53:52 +0000 (22:53 +0000)
* symtab.cc (Symbol_table::define_special_symbol):
Initialize *poldsym to prevent uninitialized variable errors.

gold/ChangeLog
gold/symtab.cc

index 4ba85c9..0cd5e27 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-25  Sriraman Tallam  <tmsriram@google.com>
+
+       * symtab.cc (Symbol_table::define_special_symbol):
+       Initialize *poldsym to prevent uninitialized variable errors.
+
 2012-05-23  Cary Coutant  <ccoutant@google.com>
 
        * layout.cc (Layout::section_name_mapping): Add rules to handle
index ebce5ca..fd81e8b 100644 (file)
@@ -1682,6 +1682,7 @@ Symbol_table::define_special_symbol(const char** pname, const char** pversion,
                                    bool* resolve_oldsym)
 {
   *resolve_oldsym = false;
+  *poldsym = NULL;
 
   // If the caller didn't give us a version, see if we get one from
   // the version script.