summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-04-20 01:27:20 -0500
committerNicholas Clark <nick@ccl4.org>2005-04-20 13:51:54 +0000
commit87a1ef3dbc71790d3dec7643306775e0d1e4768a (patch)
tree2c16cb1d368f45d3771e5d57065ec0d7f74dc419 /malloc.c
parentbd4b1eb5b0b53616d16d03ba8f6aedf325adfa1d (diff)
downloadperl-87a1ef3dbc71790d3dec7643306775e0d1e4768a.tar.gz
Refactoring to Sv*_set() macros - patch #6
Message-ID: <20050420112720.GA31042@mccoy.peters.homeunix.org> Date: Wed, 20 Apr 2005 06:27:20 -0500 p4raw-id: //depot/perl@24260
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc.c b/malloc.c
index 569ac496b0..de5766d3f6 100644
--- a/malloc.c
+++ b/malloc.c
@@ -1176,7 +1176,8 @@ perl_get_emergency_buffer(IV *size)
SvPOK_off(sv);
SvPV_set(sv, Nullch);
- SvCUR(sv) = SvLEN(sv) = 0;
+ SvCUR_set(sv, 0);
+ SvLEN_set(sv, 0);
*size = malloced_size(pv) + M_OVERHEAD;
return pv - sizeof(union overhead);
}