[obv] Fix broken build on Fedora 23.
authorWalfred Tedeschi <walfred.tedeschi@intel.com>
Thu, 7 Jul 2016 17:07:36 +0000 (19:07 +0200)
committerWalfred Tedeschi <walfred.tedeschi@intel.com>
Thu, 7 Jul 2016 17:07:36 +0000 (19:07 +0200)
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.

gdb/ChangeLog
gdb/cp-namespace.c

index 2d3e5ed71f8a731cadfd0d3fc911365989928252..92c13374928d23337ea7ee73b41cb5673cb5534c 100644 (file)
@@ -1,3 +1,8 @@
+2016-07-07  Walfred Tedeschi  <walfred.tedeschi@intel.com>
+
+       * cp-namespace.c (cp_lookup_bare_symbol): Initialize 
+       lang_this.symbol.
+
 2016-07-07  Walfred Tedeschi  <walfred.tedeschi@intel.com>
 
        * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
index f34e383bd3089c721c6793f4fac7700cba389b9f..0f1b452f6510fcd234ba8af44431906e9f62a8db 100644 (file)
@@ -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);