]> Zhao Yanbai Git Server - minix.git/commitdiff
Bugfix by Joren
authorBen Gras <ben@minix3.org>
Tue, 18 Oct 2005 19:30:45 +0000 (19:30 +0000)
committerBen Gras <ben@minix3.org>
Tue, 18 Oct 2005 19:30:45 +0000 (19:30 +0000)
commands/ash/bltin/regexp.c

index db546d638f6a062c13a66878d55c2c96cce7c9c9..cd026ac95f2cb43cb3342f8acb78109cb4a6fd1a 100755 (executable)
@@ -246,7 +246,7 @@ ccl:
                                p++;
                        }
                        p++;
-                       if (found == negate)
+                       if (found == negate || c == 0)
                                goto bad;
                        break;
                case RE_LP: