diff options
| author | Ben Winston | 2024-05-11 20:56:14 -0400 |
|---|---|---|
| committer | Ben Winston | 2024-05-11 20:56:14 -0400 |
| commit | a92a68cd10b4295fb5173356d711ac2e1f02d1b1 (patch) | |
| tree | 15bdc6a8eec8ae886aaac43854e5fabbcc7e3d67 | |
| parent | 1b399ebaca063b62885943bf72d86796ebe60abf (diff) | |
only increment the array if we actually want to print the book
| -rw-r--r-- | booki.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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); |
