aboutsummaryrefslogtreecommitdiff
path: root/posix/regcomp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-05-06 23:34:44 +0000
committerUlrich Drepper <drepper@redhat.com>2005-05-06 23:34:44 +0000
commit7b9189934509bd343dc77ef49d40620f327b6708 (patch)
tree1d8619a817904d9339d04cca9761c4059e3cba9b /posix/regcomp.c
parente699dda3ae84df08ab8ff073e1d056a2d03cfdd7 (diff)
downloadglibc-7b9189934509bd343dc77ef49d40620f327b6708.zip
glibc-7b9189934509bd343dc77ef49d40620f327b6708.tar.gz
glibc-7b9189934509bd343dc77ef49d40620f327b6708.tar.bz2
[BZ #934]
2005-05-06 Jakub Jelinek <jakub@redhat.com> [BZ #934] * posix/regex_internal.h: Include bits/libc-lock.h or define dummy __libc_lock_* macros if not _LIBC. (struct re_dfa_t): Add lock. * posix/regcomp.c (re_compile_internal): Add __libc_lock_init. * posix/regexec.c (regexec, re_search_stub): Add locking.
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r--posix/regcomp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 68e2bda..2053b02 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -774,6 +774,8 @@ re_compile_internal (preg, pattern, length, syntax)
}
preg->used = sizeof (re_dfa_t);
+ __libc_lock_init (dfa->lock);
+
err = init_dfa (dfa, length);
if (BE (err != REG_NOERROR, 0))
{