summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-03-24 22:34:44 +0100
committeryuzu-eva <cafebabe@disroot.org>2025-03-24 22:34:44 +0100
commit3493e554d8c7e7ef2e1b1f7065b58bd02145d216 (patch)
tree1f5175ad2d75161bb63e47bc336855f9abd4283b /main.c
parent8bb7b10a92c942ef686892abd1b743d648349331 (diff)
fixed a missing fp.close()
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index c36b6c6..49eead0 100644
--- a/main.c
+++ b/main.c
@@ -123,6 +123,7 @@ void print_single_match(const char *sel)
if (strncasecmp(name, sel, strlen(sel)) == 0) {
printf("Name: %s, Episode: %s, Status: %s", name, episode, status);
entry_found = 1;
+ break;
}
free(tmp);
}
@@ -165,6 +166,7 @@ void append_entry(const entry_t *entry)
}
fprintf(fp, "%s,%s,%s\n", entry->name, entry->episode, entry->status);
+ fclose(fp);
}
// edit the episode number of an anime