From 8cc69fb6b57def8f0e9e931e7ac64ae7b689af60 Mon Sep 17 00:00:00 2001 From: Sriraman Tallam Date: Fri, 25 May 2012 22:53:52 +0000 Subject: [PATCH] 2012-05-25 Sriraman Tallam * symtab.cc (Symbol_table::define_special_symbol): Initialize *poldsym to prevent uninitialized variable errors. --- gold/ChangeLog | 5 +++++ gold/symtab.cc | 1 + 2 files changed, 6 insertions(+) diff --git a/gold/ChangeLog b/gold/ChangeLog index 4ba85c98761..0cd5e2758ba 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2012-05-25 Sriraman Tallam + + * symtab.cc (Symbol_table::define_special_symbol): + Initialize *poldsym to prevent uninitialized variable errors. + 2012-05-23 Cary Coutant * layout.cc (Layout::section_name_mapping): Add rules to handle diff --git a/gold/symtab.cc b/gold/symtab.cc index ebce5ca1d74..fd81e8bd006 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. -- 2.30.2