projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
const declaration fixup
[p5sagit/p5-mst-13.2.git]
/
pp_hot.c
diff --git
a/pp_hot.c
b/pp_hot.c
index
461c666
..
1a40441
100644
(file)
--- a/
pp_hot.c
+++ b/
pp_hot.c
@@
-2129,7
+2129,8
@@
PP(pp_subst)
sv_catpvn(dstr, s, strend - s);
(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));