diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-14 18:32:45 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-14 18:32:45 +0000 |
commit | 6d307763fb4e0224a97d3f44150b8e07c0943af9 (patch) | |
tree | e9516d015c1acd5052287d5f6ce056d65835dd90 /gdb/ada-lang.c | |
parent | 348144bad4817b70db0c33f4539e36ef9f9b75e9 (diff) | |
download | gdb-6d307763fb4e0224a97d3f44150b8e07c0943af9.zip gdb-6d307763fb4e0224a97d3f44150b8e07c0943af9.tar.gz gdb-6d307763fb4e0224a97d3f44150b8e07c0943af9.tar.bz2 |
2007-08-14 Michael Snyder <msnyder@access-company.com>
* ada-lang.c (possible_user_operator_p): Guard against NULL.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 58d820d..0a27ba0 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -3536,7 +3536,7 @@ possible_user_operator_p (enum exp_opcode op, struct value *args[]) ((TYPE_CODE (type0) != TYPE_CODE_ARRAY && (TYPE_CODE (type0) != TYPE_CODE_PTR || TYPE_CODE (TYPE_TARGET_TYPE (type0)) != TYPE_CODE_ARRAY)) - || (TYPE_CODE (type1) != TYPE_CODE_ARRAY + || (type1 != NULL && TYPE_CODE (type1) != TYPE_CODE_ARRAY && (TYPE_CODE (type1) != TYPE_CODE_PTR || (TYPE_CODE (TYPE_TARGET_TYPE (type1)) != TYPE_CODE_ARRAY)))); |