aboutsummaryrefslogtreecommitdiff
path: root/ch.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2021-07-18 05:00:54 +0000
committerXin LI <delphij@FreeBSD.org>2021-07-18 05:00:54 +0000
commit1f8b3bb911e37330e00dab1b1e6cba65c573e63c (patch)
tree76bc208c60410d67a73ad419308e89b2f17e33df /ch.c
parentbb457ab744207cc137364e84eb5e56632cdcdc98 (diff)
Diffstat (limited to 'ch.c')
-rw-r--r--ch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ch.c b/ch.c
index bab0692f7437..379dd84c41b8 100644
--- a/ch.c
+++ b/ch.c
@@ -860,7 +860,7 @@ ch_init(f, flags)
* Allocate and initialize a new filestate.
*/
thisfile = (struct filestate *)
- calloc(1, sizeof(struct filestate));
+ ecalloc(1, sizeof(struct filestate));
thisfile->buflist.next = thisfile->buflist.prev = END_OF_CHAIN;
thisfile->nbufs = 0;
thisfile->flags = flags;