Fix bug book display

This commit is contained in:
Meutel 2017-01-14 18:18:03 +01:00
parent 4e8307a97f
commit 1213d7a62d

2
main.c
View File

@ -294,7 +294,7 @@ sendbooks(struct kreq *r)
putbookdata(&req, b); putbookdata(&req, b);
kjson_obj_close(&req); kjson_obj_close(&req);
db_book_full_free(b); db_book_full_free(b);
} if (termz > 0) { } else if (termz > 0) {
const char **terms = kcalloc(termz, sizeof(char *)); const char **terms = kcalloc(termz, sizeof(char *));
initterms(r, terms); initterms(r, terms);
Book **books = kcalloc(per, sizeof(Book)); Book **books = kcalloc(per, sizeof(Book));