From: Ulrich Drepper Date: Thu, 13 Nov 2003 18:35:19 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3d3d9742fc70e08af69d3fc9cb18035c25cd57d;p=thirdparty%2Fglibc.git Update. * posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern. --- diff --git a/ChangeLog b/ChangeLog index 9da6608a2bd..934de095997 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2003-11-13 Ulrich Drepper + * 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. diff --git a/posix/runtests.c b/posix/runtests.c index 2a5ef6c820d..ea1efb6bf14 100644 --- a/posix/runtests.c +++ b/posix/runtests.c @@ -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);