aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Winston2024-06-18 12:08:11 -0400
committerBen Winston2024-06-18 12:08:11 -0400
commit2ba9fc01bd1f1f54b50004c97d7239a469dd6f19 (patch)
tree79657c3e860868fa38545cb42bf5d2b94ef72205
parentc49964babacb88b71ad3aaa2cee2e5a69d537d60 (diff)
bugfix: multiple vars on a line each needs initializing
-rw-r--r--booki.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/booki.c b/booki.c
index 1738f9f..efec71a 100644
--- a/booki.c
+++ b/booki.c
@@ -903,7 +903,7 @@ void search(int argc, char* argv[], char* booki_file) {
return;
}
- FILE *edit_file, *fixed_file = NULL;
+ FILE *edit_file = NULL, *fixed_file = NULL;
if (search_opts.edit) {
edit_file = fopen(EDIT_FILE, "w");
fixed_file = fopen(FIXED_FILE, "w");