diff options
Diffstat (limited to 'Src/params.c')
-rw-r--r-- | Src/params.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/params.c b/Src/params.c index 079378180..c77b23566 100644 --- a/Src/params.c +++ b/Src/params.c @@ -332,7 +332,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); @@ -701,7 +701,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 @@ -1770,7 +1770,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(""); |