Segfault FS#2
Forgot to calloc the collection of collected manga
This commit is contained in:
parent
cb376d3ef4
commit
ce6f28bf35
1 changed files with 1 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue