diff --git a/src/interfaces/ecpg/preproc/variable.c b/src/interfaces/ecpg/preproc/variable.c index d97ef59f44..0c5749b789 100644 --- a/src/interfaces/ecpg/preproc/variable.c +++ b/src/interfaces/ecpg/preproc/variable.c @@ -78,7 +78,7 @@ find_struct(char *name, char *next) if (c == '-') { - if (p->type->typ != ECPGt_struct && p->type->typ != ECPGt_union) + if (p->type->typ != ECPGt_array) { sprintf(errortext, "variable %s is not a pointer", name); mmerror(ET_FATAL, errortext);