projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_graphite: enable TCP keepalive on network socket
[collectd.git]
/
src
/
numa.c
diff --git
a/src/numa.c
b/src/numa.c
index
a87a17e
..
8f5bf48
100644
(file)
--- a/
src/numa.c
+++ b/
src/numa.c
@@
-25,6
+25,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
@@
-130,11
+131,10
@@
static int numa_init (void) /* {{{ */
while (42)
{
char path[PATH_MAX];
while (42)
{
char path[PATH_MAX];
- struct stat statbuf;
+ struct stat statbuf
= { 0 }
;
int status;
ssnprintf (path, sizeof (path), NUMA_ROOT_DIR "/node%i", max_node + 1);
int status;
ssnprintf (path, sizeof (path), NUMA_ROOT_DIR "/node%i", max_node + 1);
- memset (&statbuf, 0, sizeof (statbuf));
status = stat (path, &statbuf);
if (status == 0)
status = stat (path, &statbuf);
if (status == 0)