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 4ba85c98761083db4522449aba912b1baeedb891..0cd5e2758ba10ef7f5c5a57b9154b12b57edc25c 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 ebce5ca1d74a65833df971aa08d3d01f22de17d8..fd81e8bd00664791f136fac2a6671105e1f0167d 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.
This page took 0.030934 seconds and 4 git commands to generate.