summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-05-28 08:46:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-05-28 08:46:10 +0000
commit5ce0178e8e6a35225316965a9dccd12fa35eb60d (patch)
treed131ffaa067d0e95c2f034f1a7afc432b2e81c6d /op.c
parentb9449ee00d2461c5a220b8b0cd7ee22c0d775f7c (diff)
downloadperl-5ce0178e8e6a35225316965a9dccd12fa35eb60d.tar.gz
fix bogus redeclaration warning for "our" variables in different
scopes p4raw-id: //depot/perl@6137
Diffstat (limited to 'op.c')
-rw-r--r--op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index 3275d0eabf..6e77fde587 100644
--- a/op.c
+++ b/op.c
@@ -162,6 +162,7 @@ Perl_pad_allocmy(pTHX_ char *name)
do {
if ((sv = svp[off])
&& sv != &PL_sv_undef
+ && (SvIVX(sv) == PAD_MAX || SvIVX(sv) == 0)
&& ((SvFLAGS(sv) & SVpad_OUR) && GvSTASH(sv) == ourstash)
&& strEQ(name, SvPVX(sv)))
{