From: Florian Forster Date: Fri, 7 Jan 2011 07:08:32 +0000 (+0100) Subject: src/types_list.c: Ignore lines which begin with a hash sign. X-Git-Tag: collectd-5.0.0~24 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=628d55ad16bf6f738e668f8a38113add70d29e93 src/types_list.c: Ignore lines which begin with a hash sign. --- diff --git a/src/types_list.c b/src/types_list.c index 49714176..10cb4f28 100644 --- a/src/types_list.c +++ b/src/types_list.c @@ -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;