From 49196c8c62274826ddc5e5c3f84e2a457a7ab41a Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 17 Jul 2024 21:30:11 +0100 Subject: Return -1 if lastspokelinenumber() fails to find a timestamp. --- replay.c | 1 + 1 file changed, 1 insertion(+) 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? -- cgit v1.2.3