summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-14 00:14:14 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-14 00:14:14 -0800
commitd04a5e5a459e5fd8dde5f3b0e6629124c03a6432 (patch)
tree1fbe6a619b4c1d26c6e767f000c843bba6518e5d /parse/stab.c
parentb5d42225dec46ce9a0a0d6eaf59c442952455b47 (diff)
downloadmc-d04a5e5a459e5fd8dde5f3b0e6629124c03a6432.tar.gz
Don't use a null variable.
Didn't fix everything in the last commit.
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/stab.c b/parse/stab.c
index c139e23..c219985 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -318,7 +318,7 @@ void updatetype(Stab *st, Node *n, Type *t)
int mergetype(Type *old, Type *new)
{
if (!new) {
- lfatal(old->loc, "double prototyping of %s", tystr(new));
+ lfatal(old->loc, "double prototyping of %s", tystr(old));
}
else if (old->vis == Visexport && new->vis != Visexport) {
if (!old->sub && new->sub) {