aboutsummaryrefslogtreecommitdiff
path: root/ch.c
diff options
context:
space:
mode:
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;