summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-13 01:25:07 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-13 01:25:07 +0000
commitc70c8a0a59777ed7fb7075471185210bc2169b49 (patch)
tree86550314a4762842631adbbdf7c29d3bdc231c3f /sv.c
parentb338183147e566f942b72c505aee8119791478c2 (diff)
downloadperl-c70c8a0a59777ed7fb7075471185210bc2169b49.tar.gz
add a few more PURIFY guards
p4raw-id: //depot/perl@1460
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 4bb6bcaaed..7390d9c3ed 100644
--- a/sv.c
+++ b/sv.c
@@ -1118,13 +1118,13 @@ sv_grow(SV* sv, unsigned long newlen)
s = SvPVX(sv);
if (newlen > SvLEN(sv)) { /* need more room? */
if (SvLEN(sv) && s) {
-#ifdef MYMALLOC
+#if defined(MYMALLOC) && !defined(PURIFY)
STRLEN l = malloced_size((void*)SvPVX(sv));
if (newlen <= l) {
SvLEN_set(sv, l);
return s;
} else
-#endif
+#endif
Renew(s,newlen,char);
}
else