X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftypes_list.c;h=887b43d87c420d76a823a64452fe788893ff1bd1;hb=443afcad2cbacaca9bb1fd7d9ea790cbeb6ff015;hp=1b0507f4c2f12b6e32310074865c66020d11b019;hpb=631874e4161f9ac8651158aa81f0e7f8aa896ed9;p=collectd.git diff --git a/src/types_list.c b/src/types_list.c index 1b0507f4..887b43d8 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;