aboutsummaryrefslogtreecommitdiff
path: root/Src/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/params.c b/Src/params.c
index 255260467..aa80bcc78 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -318,7 +318,7 @@ scancopyparams(HashNode hn, int flags)
{
/* Going into a real parameter, so always use permanent storage */
Param pm = (Param)hn;
- Param tpm = (Param) zcalloc(sizeof *tpm);
+ Param tpm = (Param) zshcalloc(sizeof *tpm);
tpm->nam = ztrdup(pm->nam);
copyparam(tpm, pm, 0);
addhashnode(outtable, tpm->nam, tpm);
@@ -687,7 +687,7 @@ createparam(char *name, int flags)
pm->ct = 0;
oldpm = pm->old;
} else {
- pm = (Param) zcalloc(sizeof *pm);
+ pm = (Param) zshcalloc(sizeof *pm);
if ((pm->old = oldpm)) {
/*
* needed to avoid freeing oldpm, but we do take it
@@ -1753,7 +1753,7 @@ setarrvalue(Value v, char **val)
if (v->end <= n)
ll += n - v->end + 1;
- p = new = (char **) zcalloc(sizeof(char *) * (ll + 1));
+ p = new = (char **) zshcalloc(sizeof(char *) * (ll + 1));
for (i = 0; i < v->start; i++)
*p++ = i < n ? ztrdup(*q++) : ztrdup("");