… | |
… | |
963 | dec.end = SvEND (string); |
963 | dec.end = SvEND (string); |
964 | dec.err = 0; |
964 | dec.err = 0; |
965 | dec.depth = 0; |
965 | dec.depth = 0; |
966 | dec.maxdepth = DEC_DEPTH (dec.flags); |
966 | dec.maxdepth = DEC_DEPTH (dec.flags); |
967 | |
967 | |
968 | *SvEND (string) = 0; // this should basically be a nop, too |
968 | *dec.end = 0; // this should basically be a nop, too, but make sure its there |
969 | sv = decode_sv (&dec); |
969 | sv = decode_sv (&dec); |
970 | |
970 | |
971 | if (!sv) |
971 | if (!sv) |
972 | { |
972 | { |
973 | IV offset = dec.flags & F_UTF8 |
973 | IV offset = dec.flags & F_UTF8 |