summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2003-05-27 20:31:10 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2003-05-29 08:12:46 +0000
commit34b888b7a116c8fc8bb998c58a3d9eea1f25ff56 (patch)
tree9859a5b737e5bf715afca0e44dd73c96782ca0d2 /hv.c
parent284196a30160ee3fc7affa3eed3ebbd21309fd83 (diff)
downloadperl-34b888b7a116c8fc8bb998c58a3d9eea1f25ff56.tar.gz
$x = $empty_hash{$undef_val} doesn't give a warning
Message-ID: <20030527183110.GA22715@fdgroup.com> p4raw-id: //depot/perl@19632
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index 52c6aeff4f..ee08ce4169 100644
--- a/hv.c
+++ b/hv.c
@@ -418,6 +418,7 @@ Perl_hv_fetch_ent(pTHX_ HV *hv, SV *keysv, I32 lval, register U32 hash)
#endif
}
+ keysave = key = SvPV(keysv, klen);
xhv = (XPVHV*)SvANY(hv);
if (!xhv->xhv_array /* !HvARRAY(hv) */) {
if (lval
@@ -432,7 +433,6 @@ Perl_hv_fetch_ent(pTHX_ HV *hv, SV *keysv, I32 lval, register U32 hash)
return 0;
}
- keysave = key = SvPV(keysv, klen);
is_utf8 = (SvUTF8(keysv)!=0);
if (is_utf8) {