aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-namespace.c
diff options
context:
space:
mode:
authorWalfred Tedeschi <walfred.tedeschi@intel.com>2016-07-07 19:07:36 +0200
committerWalfred Tedeschi <walfred.tedeschi@intel.com>2016-07-07 19:07:36 +0200
commit41c977aa5c81c04a9fea61bfe0b88e428a4b1839 (patch)
treef45401f453c7b4f314d72a6516d05293150e7aeb /gdb/cp-namespace.c
parent4f19a0e6b45c63c0b4afe27a19d144cca412d4ae (diff)
downloadgdb-41c977aa5c81c04a9fea61bfe0b88e428a4b1839.zip
gdb-41c977aa5c81c04a9fea61bfe0b88e428a4b1839.tar.gz
gdb-41c977aa5c81c04a9fea61bfe0b88e428a4b1839.tar.bz2
[obv] Fix broken build on Fedora 23.
Compiler complains about possible utilization of "symbol" which is member of lang_def. Initialization was added. 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com> gdb/ChangeLog: * cp-namespace.c (cp_lookup_bare_symbol): Initialize lang_this.symbol.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r--gdb/cp-namespace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index f34e383..0f1b452 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -206,6 +206,8 @@ cp_lookup_bare_symbol (const struct language_defn *langdef,
struct block_symbol lang_this;
struct type *type;
+ lang_this.symbol = NULL;
+
if (langdef != NULL)
lang_this = lookup_language_this (langdef, block);