summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-07 12:11:48 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-07 12:11:48 +0000
commit5c144d81801caa5e8317f6a38b40eb08257c47ea (patch)
tree41bde5ec37960016aa4c6ad2357049096f4caebb /hv.c
parent9cbe880bef86d6a2a18d2671579498840ffb8162 (diff)
downloadperl-5c144d81801caa5e8317f6a38b40eb08257c47ea.tar.gz
Lots of consting
p4raw-id: //depot/perl@24726
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hv.c b/hv.c
index f1e80a9aec..f418972303 100644
--- a/hv.c
+++ b/hv.c
@@ -426,7 +426,7 @@ S_hv_fetch_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
if (keysv) {
if (flags & HVhek_FREEKEY)
Safefree(key);
- key = SvPV(keysv, klen);
+ key = SvPV_const(keysv, klen);
flags = 0;
is_utf8 = (SvUTF8(keysv) != 0);
} else {
@@ -942,7 +942,7 @@ S_hv_delete_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
if (keysv) {
if (k_flags & HVhek_FREEKEY)
Safefree(key);
- key = SvPV(keysv, klen);
+ key = SvPV_const(keysv, klen);
k_flags = 0;
is_utf8 = (SvUTF8(keysv) != 0);
} else {