From: Ben Gras Date: Tue, 18 Oct 2005 11:00:03 +0000 (+0000) Subject: Bugfix by Joren X-Git-Tag: v3.1.2a~613 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=742f18a87cd7c8cc432ea8cd8a662b5190cf71ae;p=minix.git Bugfix by Joren --- 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: