diff --git a/src/numa.c b/src/numa.c
index 4b4ef2085ebef0f15f1299342ec20e002d7688fc..8f5bf4803821c9fe40be370f4c5c5ee0d4cd4520 100644 (file)
--- a/src/numa.c
+++ b/src/numa.c
/**
* collectd - src/numa.c
- * Copyright (C) 2012 Florian Forster
+ * Copyright (C) 2012 Florian Forster
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
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)