aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-06-28 18:01:46 +0000
committerDJ Delorie <dj@redhat.com>2004-06-28 18:01:46 +0000
commita21da8bff0e6a2efd2daa258e82574980c5cb270 (patch)
tree111065adc09e2cbfa7d2e33c8f05221fe1897556 /libiberty/cp-demangle.c
parent8ffc9dd4f476dc8a0a00e7fe8bca7b8ea68c66bb (diff)
downloadgdb-a21da8bff0e6a2efd2daa258e82574980c5cb270.zip
gdb-a21da8bff0e6a2efd2daa258e82574980c5cb270.tar.gz
gdb-a21da8bff0e6a2efd2daa258e82574980c5cb270.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r--libiberty/cp-demangle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index fe4b367..8608bc8 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -2398,6 +2398,8 @@ d_expr_primary (di)
const char *s;
type = cplus_demangle_type (di);
+ if (type == NULL)
+ return NULL;
/* If we have a type we know how to print, we aren't going to
print the type name itself. */