I32 len = mg->mg_len;
assert ( mg->mg_ptr != 0 );
if (mg->mg_len == HEf_SVKEY) {
- key = SvPV((SV *)mg->mg_ptr, len);
+ STRLEN slen;
+ key = SvPV((SV *)mg->mg_ptr, slen);
+ len = slen;
if (SvUTF8((SV *)mg->mg_ptr)) {
len = -len;
}
I32 len = mg->mg_len;
assert ( mg->mg_ptr != 0 );
if (mg->mg_len == HEf_SVKEY) {
- key = SvPV((SV *)mg->mg_ptr, len);
+ STRLEN slen;
+ key = SvPV((SV *)mg->mg_ptr, slen);
+ len = slen;
if (SvUTF8((SV *)mg->mg_ptr)) {
len = -len;
}
I32 len = mg->mg_len;
assert ( mg->mg_ptr != 0 );
if (mg->mg_len == HEf_SVKEY) {
- key = SvPV((SV *)mg->mg_ptr, len);
+ STRLEN slen;
+ key = SvPV((SV *)mg->mg_ptr, slen);
+ len = slen;
if (SvUTF8((SV *)mg->mg_ptr)) {
len = -len;
}
exists = av_exists((AV*) sobj, SvIV(index));
} else {
I32 len;
- char *key = SvPVutf8(index, len);
+ STRLEN slen;
+ char *key = SvPVutf8(index, slen);
+ len = slen;
if (SvUTF8(index)) {
len = -len;
}