summaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2004-06-28 18:01:46 +0000
committerDJ Delorie <dj@delorie.com>2004-06-28 18:01:46 +0000
commit5c6e4a69373896c63ff1bf85eb525cb14747efb2 (patch)
tree9bafa6b7cea66cd1bddc468b16d78985d04f7755 /libiberty/cp-demangle.c
parent4f76b6c518c4f2f0bb79a9e2b41de5063097a527 (diff)
downloadgdb-5c6e4a69373896c63ff1bf85eb525cb14747efb2.tar.gz
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 fe4b36712d3..8608bc82507 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. */