* posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
This commit is contained in:
Ulrich Drepper 2003-11-13 18:35:19 +00:00
parent db70483fd3
commit b3d3d9742f
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2003-11-13 Ulrich Drepper <drepper@redhat.com>
* posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
* posix/regcomp.c (parse_dup_op): Fail with REG_BADBR is first
number in {,} expression is larger.

View File

@ -71,6 +71,9 @@ run_a_test (int id, const struct a_test * t)
puts (" OK.");
return 0;
}
if (last_pattern)
regfree (&r);
last_pattern = NULL;
regerror (err, &r, errmsg, 100);
printf ("test %d\n", id);
puts (errmsg);