From 76a715ee8c8c8ace5a341d81ca39dd1747886187 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 16 Jan 2014 18:51:16 -0200 Subject: Fix order of calloc arguments. (Patch by Dawid Gajownik) --- IncSet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IncSet.c') diff --git a/IncSet.c b/IncSet.c index 2b9e052b..f38ba6dc 100644 --- a/IncSet.c +++ b/IncSet.c @@ -77,7 +77,7 @@ static inline void IncMode_done(IncMode* mode) { } IncSet* IncSet_new(FunctionBar* bar) { - IncSet* this = calloc(sizeof(IncSet), 1); + IncSet* this = calloc(1, sizeof(IncSet)); IncMode_initSearch(&(this->modes[INC_SEARCH])); IncMode_initFilter(&(this->modes[INC_FILTER])); this->active = NULL; -- cgit v1.2.3