Update.
* posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.
This commit is contained in:
parent
db70483fd3
commit
b3d3d9742f
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user