From ce6f28bf350ffe7788eeeb936c90f54e08929188 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 3 Nov 2010 23:50:57 +0100 Subject: [PATCH] Segfault FS#2 Forgot to calloc the collection of collected manga --- src/data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data.c b/src/data.c index cf5643a..2b755f7 100644 --- a/src/data.c +++ b/src/data.c @@ -117,6 +117,7 @@ void data_get_volumes_by_manga_id(gint manga_id, gint *size, gint **vols) } sqlite3_finalize(statement); + volumes = (gint *)calloc(sizeof(gint), count); if (count > 0) { sql = g_strdup_printf(