From def2a8d763d543a7cbace1d1cb026ee3c458175f Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 19 Mar 2006 04:17:42 +0000 Subject: [PATCH] revert previous error check. --- lib/libc/regex/regcomp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index 0a5ecc34e86d..ddc5b40321c8 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1,4 +1,4 @@ -/* $NetBSD: regcomp.c,v 1.23 2006/03/19 02:51:30 christos Exp $ */ +/* $NetBSD: regcomp.c,v 1.24 2006/03/19 04:17:42 christos Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -76,7 +76,7 @@ #if 0 static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94"; #else -__RCSID("$NetBSD: regcomp.c,v 1.23 2006/03/19 02:51:30 christos Exp $"); +__RCSID("$NetBSD: regcomp.c,v 1.24 2006/03/19 04:17:42 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -305,10 +305,6 @@ int cflags; EMIT(OEND, 0); g->laststate = THERE(); - if (g->setbits == NULL) { - SETERROR(REG_INVARG); - goto out; - } /* tidy up loose ends and fill things in */ categorize(p, g); stripsnug(p, g);