diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-07 12:11:48 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-07 12:11:48 +0000 |
commit | 5c144d81801caa5e8317f6a38b40eb08257c47ea (patch) | |
tree | 41bde5ec37960016aa4c6ad2357049096f4caebb /hv.c | |
parent | 9cbe880bef86d6a2a18d2671579498840ffb8162 (diff) | |
download | perl-5c144d81801caa5e8317f6a38b40eb08257c47ea.tar.gz |
Lots of consting
p4raw-id: //depot/perl@24726
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |