diff --git a/lang/cem/cemcom.ansi/idf.c b/lang/cem/cemcom.ansi/idf.c index 58a42ca7d..8429fe036 100644 --- a/lang/cem/cemcom.ansi/idf.c +++ b/lang/cem/cemcom.ansi/idf.c @@ -528,11 +528,8 @@ declare_formals(idf, fp) /* When one of the formals has the same name as the function, it hides the function def. Get it. */ - while (se) { - if (se->se_idf == idf) { - df = df->next; - break; - } + if (se && se->se_idf == idf) { + df = df->next; } hasproto = df->df_type->tp_proto != 0;