diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-10-29 19:17:30 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-10-29 19:17:30 +0000 |
commit | 815bc92148939ce369585c59d3af730f69833844 (patch) | |
tree | 2787fe59d0c8b27c6a9cf18e65784cdbd925c9b1 /Src/params.c | |
parent | 026631ab818995ad480a9ea3e5a7ec243c645db1 (diff) | |
download | zsh-815bc92148939ce369585c59d3af730f69833844.tar.gz zsh-815bc92148939ce369585c59d3af730f69833844.tar.xz zsh-815bc92148939ce369585c59d3af730f69833844.zip |
a la 19209: zcalloc -> zshcalloc
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(""); |