diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/valops.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f2bdec78920..45e2fb5cf58 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2014-12-12 Doug Evans <xdje42@gmail.com> + * valops.c (value_maybe_namespace_elt): Remove unnecessary test of + result != NULL. + +2014-12-12 Doug Evans <xdje42@gmail.com> + * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous. All callers updated. Rename arg "namespace" to "symbol_name". diff --git a/gdb/valops.c b/gdb/valops.c index 4125fc032a2..4d3059eaf6c 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3586,7 +3586,7 @@ value_maybe_namespace_elt (const struct type *curtype, else result = value_of_variable (sym, get_selected_block (0)); - if (result && want_address) + if (want_address) result = value_addr (result); return result; |