From 628d55ad16bf6f738e668f8a38113add70d29e93 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 7 Jan 2011 08:08:32 +0100 Subject: [PATCH] src/types_list.c: Ignore lines which begin with a hash sign. --- src/types_list.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.11.0