diff options
author | Luke Bratch <luke@bratch.co.uk> | 2024-07-17 21:30:11 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2024-07-17 21:30:11 +0100 |
commit | 49196c8c62274826ddc5e5c3f84e2a457a7ab41a (patch) | |
tree | 908975b790d101f54a40af2bb537c3d71ae0a1a4 | |
parent | ccec10c6bf69091eae4e609920420db25e800e21 (diff) |
Return -1 if lastspokelinenumber() fails to find a timestamp.
-rw-r--r-- | replay.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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? |