Fix bug book display
This commit is contained in:
parent
4e8307a97f
commit
1213d7a62d
2
main.c
2
main.c
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user