diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index f69f439..9f59804 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -5185,7 +5185,7 @@ static int test(int label,int parens,int invert) if (endtok!=0) needtoken(endtok); if (ident==iARRAY || ident==iREFARRAY) { - char *ptr=(sym->name!=NULL) ? sym->name : "-unknown-"; + char *ptr=(sym!=NULL) ? sym->name : "-unknown-"; error(33,ptr); /* array must be indexed */ } /* if */ if (ident==iCONSTEXPR) { /* constant expression */