From: Kim Jones Date: Tue, 16 Aug 2016 16:43:45 +0000 (+0100) Subject: hugepages: typo fix in 2nd pathconf() check X-Git-Tag: collectd-5.7.0~119^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c4413ca9cec4a16b12c2dbdfde5b821a35de5e0e;p=collectd.git hugepages: typo fix in 2nd pathconf() check Change-Id: Ie4ceb0ec4b55e60fcffb1d59d33a5711366eb2f7 Signed-off-by: Kim Jones --- diff --git a/src/hugepages.c b/src/hugepages.c index e7b98da4..120dd798 100644 --- a/src/hugepages.c +++ b/src/hugepages.c @@ -220,7 +220,7 @@ static int read_nodes(void) } errno = 0; - if ((lim = pathconf(path, _PC_NAME_MAX)) == -1) { + if ((lim = pathconf(sys_node, _PC_NAME_MAX)) == -1) { /* Limit not defined if errno == 0, otherwise error */ if (errno != 0) { ERROR("%s: pathconf failed", g_plugin_name);