summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-10-16 01:58:58 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-10-16 01:58:58 +0000
commit6abf89b4e9a0a870d17be970dcc7a8f13ab38696 (patch)
treecfee5f08ab3e739c67799faf80d07f9e775e1c7f /op.c
parent87671ffc0b0ccacb922794ca8606103dc9023688 (diff)
parentf0fe56f1f136d50257a26fd1501fffbb95be284e (diff)
downloadperl-6abf89b4e9a0a870d17be970dcc7a8f13ab38696.tar.gz
integrate cfgperl mods into mainline
p4raw-id: //depot/perl@1978
Diffstat (limited to 'op.c')
-rw-r--r--op.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/op.c b/op.c
index 635f4cdc31..6bfa1a195d 100644
--- a/op.c
+++ b/op.c
@@ -3838,9 +3838,10 @@ newSUB(I32 floor, OP *o, OP *proto, OP *block)
CvSTASH(cv) = PL_curstash;
#ifdef USE_THREADS
CvOWNER(cv) = 0;
- if (!CvMUTEXP(cv))
+ if (!CvMUTEXP(cv)) {
New(666, CvMUTEXP(cv), 1, perl_mutex);
- MUTEX_INIT(CvMUTEXP(cv));
+ MUTEX_INIT(CvMUTEXP(cv));
+ }
#endif /* USE_THREADS */
if (ps)