various null-dereference problems fixed

This commit is contained in:
erikb
1986-09-02 15:22:54 +00:00
parent b18ced777e
commit c2a10ef9bc
6 changed files with 18 additions and 14 deletions

View File

@@ -171,6 +171,7 @@ idf2expr(expr)
/* now def != 0 */
if (def->df_type->tp_fund == LABEL) {
expr_error(expr, "illegal use of label %s", idf->id_text);
expr->ex_type = error_type;
}
else {
def->df_used = 1;