syslogd: Reset prevcount in fprintlog_first() to prevent assert()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
3d4b8cb84d
commit
1d8fe4944d
@ -1687,6 +1687,7 @@ static void fprintlog_first(struct filed *f, struct buf_msg *buffer)
|
|||||||
int iovcnt;
|
int iovcnt;
|
||||||
|
|
||||||
logit("Called fprintlog_first(), ");
|
logit("Called fprintlog_first(), ");
|
||||||
|
f->f_prevcount = 0;
|
||||||
|
|
||||||
if (!memcmp(&buffer->timestamp, &zero, sizeof(zero))) {
|
if (!memcmp(&buffer->timestamp, &zero, sizeof(zero))) {
|
||||||
struct logtime timestamp_now;
|
struct logtime timestamp_now;
|
||||||
|
Loading…
Reference in New Issue
Block a user