From 502fc48ee3e3c29dc3d569f8e543d48ceb7a4de6 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sun, 19 May 2002 01:41:54 +0000 Subject: IRIX SMP turned up a few hundred "Use of uninitialized value in numeric eq" warnings: initialise the $counter2. p4raw-id: //depot/perl@16690 --- ext/threads/shared/t/cond.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/threads/shared/t/cond.t b/ext/threads/shared/t/cond.t index 8c793471c3..aa80aabefc 100644 --- a/ext/threads/shared/t/cond.t +++ b/ext/threads/shared/t/cond.t @@ -217,9 +217,9 @@ sub ok { # ditto with refs and shared() - my $counter2; + my $counter2 = 0; share($counter2); - my $r = \$counter2; + my $r = \$counter2; sub waiter2 { lock($r); -- cgit v1.2.1