]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 13 Nov 2003 18:35:19 +0000 (18:35 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 13 Nov 2003 18:35:19 +0000 (18:35 +0000)
* posix/runtests.c (run_a_test): If regcomp failed, reset last_pattern.

ChangeLog
posix/runtests.c

index 9da6608a2bd04b63f16b137ce6d55325121b3b78..934de095997f3a6161f5258969114691ba5f9ebc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
index 2a5ef6c820d3fa6bffd2a514964f689b6ad83c6e..ea1efb6bf14e8dff82a112041bebc635216f26eb 100644 (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);
This page took 0.050888 seconds and 5 git commands to generate.