From bb4131799d33f1ee478e9b100bf698df505517f7 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 10 Oct 2013 16:18:03 +0900 Subject: [PATCH] add missing argument for calloc --- src/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.c b/src/state.c index a830608e..5855521e 100644 --- a/src/state.c +++ b/src/state.c @@ -7,7 +7,7 @@ pic_open() { pic_state *pic; - pic = (pic_state *)calloc(sizeof(pic_state)); + pic = (pic_state *)calloc(1, sizeof(pic_state)); return pic; }