X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnuma.c;h=8f5bf4803821c9fe40be370f4c5c5ee0d4cd4520;hb=5523a080010dcb7a61dc0dccc3969a2a048e52f9;hp=a87a17e9df7c7c0780aa730a280b30c984a94995;hpb=f5adf265a374e5e0dba89a4a9903e7719dc57039;p=collectd.git diff --git a/src/numa.c b/src/numa.c index a87a17e9..8f5bf480 100644 --- a/src/numa.c +++ b/src/numa.c @@ -25,6 +25,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" @@ -130,11 +131,10 @@ static int numa_init (void) /* {{{ */ 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); - memset (&statbuf, 0, sizeof (statbuf)); status = stat (path, &statbuf); if (status == 0)