Fix bug book display

This commit is contained in:
Meutel 2017-01-14 18:18:03 +01:00
parent 4e8307a97f
commit 1213d7a62d
1 changed files with 1 additions and 1 deletions

2
main.c
View File

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