summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJohn Peacock <jpeacock@rowman.com>2004-07-12 19:16:51 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-07-13 08:27:11 +0000
commitd2397f31c862eda39e662addb6f45fa6fe0550fe (patch)
tree0abd89c532e7c6fea09cf98b09db4cb5aec825e4 /util.c
parentd52b7888e9c3eb0ccb038b7c44075ba28e8fefa6 (diff)
downloadperl-d2397f31c862eda39e662addb6f45fa6fe0550fe.tar.gz
was Re: UNIVERSAL::VERSION causing "Use of uninitialized value..." warning
Message-ID: <40F35423.5080304@rowman.com> p4raw-id: //depot/perl@23088
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index d145262a4c..ad6d40156f 100644
--- a/util.c
+++ b/util.c
@@ -3962,7 +3962,7 @@ Perl_scan_version(pTHX_ char *s, SV *rv, bool qv)
}
if ( qv ) { /* quoted versions always become full version objects */
I32 len = av_len((AV *)sv);
- for ( len = 2 - len; len != 0; len-- )
+ for ( len = 2 - len; len > 0; len-- )
av_push((AV *)sv, newSViv(0));
}
return s;