From b187c96cc49b66f2f4878143543261f2072f6e20 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 18 Oct 2005 19:30:45 +0000 Subject: [PATCH] Bugfix by Joren --- commands/ash/bltin/regexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/ash/bltin/regexp.c b/commands/ash/bltin/regexp.c index db546d638..cd026ac95 100755 --- a/commands/ash/bltin/regexp.c +++ b/commands/ash/bltin/regexp.c @@ -246,7 +246,7 @@ ccl: p++; } p++; - if (found == negate) + if (found == negate || c == 0) goto bad; break; case RE_LP: -- 2.44.0