From b54d2dde407921caa7561dde6b45831ba93d0840 Mon Sep 17 00:00:00 2001 From: Hisham Date: Tue, 2 Feb 2016 15:53:02 +0100 Subject: Check for failure in allocations. --- IncSet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IncSet.c') diff --git a/IncSet.c b/IncSet.c index 93be6b3a..01493824 100644 --- a/IncSet.c +++ b/IncSet.c @@ -76,7 +76,7 @@ static inline void IncMode_done(IncMode* mode) { } IncSet* IncSet_new(FunctionBar* bar) { - IncSet* this = calloc(1, sizeof(IncSet)); + IncSet* this = xCalloc(1, sizeof(IncSet)); IncMode_initSearch(&(this->modes[INC_SEARCH])); IncMode_initFilter(&(this->modes[INC_FILTER])); this->active = NULL; -- cgit v1.2.3