Skip to content

Commit

Permalink
syslogd: Reset prevcount in fprintlog_first() to prevent assert()
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Nilsson <[email protected]>
  • Loading branch information
troglobit committed Nov 28, 2019
1 parent 3d4b8cb commit 1d8fe49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/syslogd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,7 @@ static void fprintlog_first(struct filed *f, struct buf_msg *buffer)
int iovcnt;

logit("Called fprintlog_first(), ");
f->f_prevcount = 0;

if (!memcmp(&buffer->timestamp, &zero, sizeof(zero))) {
struct logtime timestamp_now;
Expand Down

0 comments on commit 1d8fe49

Please sign in to comment.