From 96c91d1cfed31c5e1dc3fd776837e1cae9a74165 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 10 Jul 2005 22:02:15 +0000 Subject: 2005-06-27 Carlos O'Donell * posix/regcomp.c (re_compile_internal): __libc_lock_init after init_dfa. --- posix/regcomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'posix') diff --git a/posix/regcomp.c b/posix/regcomp.c index 2053b024dc..37e06797ac 100644 --- a/posix/regcomp.c +++ b/posix/regcomp.c @@ -774,8 +774,6 @@ 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)) { @@ -789,6 +787,8 @@ re_compile_internal (preg, pattern, length, syntax) strncpy (dfa->re_str, pattern, length + 1); #endif + __libc_lock_init (dfa->lock); + err = re_string_construct (®exp, pattern, length, preg->translate, syntax & RE_ICASE, dfa); if (BE (err != REG_NOERROR, 0)) -- cgit 1.4.1