aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--booki.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/booki.c b/booki.c
index 6031772..506f7c1 100644
--- a/booki.c
+++ b/booki.c
@@ -367,13 +367,8 @@ char** search(int argc, char* argv[]) {
if (print) {
print_book(*book, search_opts.show);
+ book_count++;
}
- book_count++;
- }
-
- printf("\n--\ncount: %d\n", book_count);
- for (int i = 0; i < book_count; i++) {
- print_book(books[i], true);
}
free(data);