aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/show-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'show-parse.c')
-rw-r--r--show-parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/show-parse.c b/show-parse.c
index f0ea9cae..044465e9 100644
--- a/show-parse.c
+++ b/show-parse.c
@@ -300,12 +300,12 @@ deeper:
if (as)
prepend(name, "%s ", show_as(as));
- if (sym->type == SYM_BASETYPE || sym->type == SYM_ENUM)
+ if (sym && (sym->type == SYM_BASETYPE || sym->type == SYM_ENUM))
mod &= ~MOD_SPECIFIER;
s = modifier_string(mod);
len = strlen(s);
- name->start -= len;
- memcpy(name->start, s, len);
+ name->start -= len;
+ memcpy(name->start, s, len);
mod = 0;
as = NULL;
}