X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnuma.c;h=4bcc2468826fe5c0313b95e732fb6552f23264f1;hb=d26dd5c1db5c3310c9e69b2b910c6547469c99ce;hp=4b4ef2085ebef0f15f1299342ec20e002d7688fc;hpb=d1483d2e2a9116c233aeaceba99fa58a7e6bdc87;p=collectd.git diff --git a/src/numa.c b/src/numa.c index 4b4ef208..4bcc2468 100644 --- a/src/numa.c +++ b/src/numa.c @@ -1,6 +1,6 @@ /** * 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"), @@ -130,11 +130,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)