summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-19 01:41:54 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-19 01:41:54 +0000
commit502fc48ee3e3c29dc3d569f8e543d48ceb7a4de6 (patch)
tree9bd047cc4423e1e838ca48575af45eb893a517f8 /ext
parent7b13eb731a6f240c77f8d04c86f0a14142680f98 (diff)
downloadperl-502fc48ee3e3c29dc3d569f8e543d48ceb7a4de6.tar.gz
IRIX SMP turned up a few hundred "Use of uninitialized
value in numeric eq" warnings: initialise the $counter2. p4raw-id: //depot/perl@16690
Diffstat (limited to 'ext')
-rw-r--r--ext/threads/shared/t/cond.t4
1 files changed, 2 insertions, 2 deletions
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);