X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_tail.c;h=a6fb600597d98621619af2451caca31e54675add;hb=69b8a9a1af204685dfdfaf1279a0f2928e0bbb32;hp=0b0a8fb41ce9a1064d3d4b27cc9f37c34000e82a;hpb=0d80072344ea5322c34f716ed77a5319a62bfc96;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) {