summaryrefslogtreecommitdiff
path: root/gdb/cp-namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r--gdb/cp-namespace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index aa29c920e11..f5f4bad878d 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -485,6 +485,7 @@ cp_lookup_symbol_via_imports (const char *scope,
struct cleanup *searched_cleanup;
sym.symbol = NULL;
+ sym.block = NULL;
/* First, try to find the symbol in the given namespace if requested. */
if (search_scope_first)