Adrian M. Enache [Sun, 26 Jan 2003 04:55:48 +0000 (06:55 +0200)]
Message-Id: <
20030126025548.GB812@ratsnest.hole>
p4raw-id: //depot/perl@18579
cx->sb_rxtainted |= RX_MATCH_TAINTED(rx);
(void)SvOOK_off(targ);
- Safefree(SvPVX(targ));
+ if (SvLEN(targ))
+ Safefree(SvPVX(targ));
SvPVX(targ) = SvPVX(dstr);
SvCUR_set(targ, SvCUR(dstr));
SvLEN_set(targ, SvLEN(dstr));