summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2024-07-17 21:30:11 +0100
committerLuke Bratch <luke@bratch.co.uk>2024-07-17 21:30:11 +0100
commit49196c8c62274826ddc5e5c3f84e2a457a7ab41a (patch)
tree908975b790d101f54a40af2bb537c3d71ae0a1a4
parentccec10c6bf69091eae4e609920420db25e800e21 (diff)
Return -1 if lastspokelinenumber() fails to find a timestamp.
-rw-r--r--replay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/replay.c b/replay.c
index de11988..bdfe2c0 100644
--- a/replay.c
+++ b/replay.c
@@ -482,6 +482,7 @@ long lastspokelinenumber(char *nick, char *basedir) {
if (timestamp < 0) {
fclose(fp);
debugprint(DEBUG_CRIT, "lastspokelinenumber(): line didn't start with a timestamp, returning -1!\n", counter);
+ return -1;
}
// Is it a PRIVMSG?