X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_tail.c;h=a6fb600597d98621619af2451caca31e54675add;hb=71bbf854d3e6f8c6d6c3582527263bb01a3a7e04;hp=0b0a8fb41ce9a1064d3d4b27cc9f37c34000e82a;hpb=6600bd1351bf81e0831e7ad95ee37a7b28cbdf94;p=collectd.git diff --git a/src/daemon/utils_tail.c b/src/daemon/utils_tail.c index 0b0a8fb4..a6fb6005 100644 --- a/src/daemon/utils_tail.c +++ b/src/daemon/utils_tail.c @@ -45,10 +45,9 @@ static int cu_tail_reopen (cu_tail_t *obj) { int seek_end = 0; FILE *fh; - struct stat stat_buf; + struct stat stat_buf = { 0 }; int status; - memset (&stat_buf, 0, sizeof (stat_buf)); status = stat (obj->file, &stat_buf); if (status != 0) {