projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: replace memset to 0 with initializers
[collectd.git]
/
src
/
daemon
/
utils_tail.c
diff --git
a/src/daemon/utils_tail.c
b/src/daemon/utils_tail.c
index
0b0a8fb
..
a6fb600
100644
(file)
--- 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)
{