Code

Configparser: when we alocate an empty list, we also need to reset the counter; else...
[collectd.git] / src / vmem.c
index 6775d20ddf0b3b4788fb4132d8359334af1d045b..d32f1db8cf42e9b2e155db93f0bf32df89f51e39 100644 (file)
@@ -77,9 +77,7 @@ static int vmem_config (const char *key, const char *value)
 {
   if (strcasecmp ("Verbose", key) == 0)
   {
-    if ((strcasecmp ("true", value) == 0)
-       || (strcasecmp ("yes", value) == 0)
-       || (strcasecmp ("on", value) == 0))
+    if (IS_TRUE (value))
       verbose_output = 1;
     else
       verbose_output = 0;