Code

Merge branch 'collectd-4.10' into collectd-5.3
[collectd.git] / src / types_list.c
index 1b0507f4c2f12b6e32310074865c66020d11b019..887b43d87c420d76a823a64452fe788893ff1bd1 100644 (file)
@@ -102,6 +102,10 @@ static void parse_line (char *buf)
   if (fields_num < 2)
     return;
 
+  /* Ignore lines which begin with a hash sign. */
+  if (fields[0][0] == '#')
+    return;
+
   ds = (data_set_t *) malloc (sizeof (data_set_t));
   if (ds == NULL)
     return;