aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2012-05-25 22:53:52 +0000
committerSriraman Tallam <tmsriram@google.com>2012-05-25 22:53:52 +0000
commit8cc69fb6b57def8f0e9e931e7ac64ae7b689af60 (patch)
tree34bde440aeb89fe47f0bcaec14e1ff2a2414d226 /gold
parent4196f325308032e069e6ab937b086f9602d21b14 (diff)
downloadgdb-8cc69fb6b57def8f0e9e931e7ac64ae7b689af60.zip
gdb-8cc69fb6b57def8f0e9e931e7ac64ae7b689af60.tar.gz
gdb-8cc69fb6b57def8f0e9e931e7ac64ae7b689af60.tar.bz2
2012-05-25 Sriraman Tallam <tmsriram@google.com>
* symtab.cc (Symbol_table::define_special_symbol): Initialize *poldsym to prevent uninitialized variable errors.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/symtab.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 4ba85c9..0cd5e27 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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
diff --git a/gold/symtab.cc b/gold/symtab.cc
index ebce5ca..fd81e8bd 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -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.