From 274a84fdd8c93f6f9daf7152685f581272253b22 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 12 Jul 2012 18:55:01 -0300 Subject: [PATCH] gencat/tree.c (read_desc): ignore lines with a # as the very first character --- gencat/tree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gencat/tree.c b/gencat/tree.c index f07deed..200a044 100644 --- a/gencat/tree.c +++ b/gencat/tree.c @@ -148,6 +148,8 @@ void read_desc(FILE *file) while (fgets(buf, sizeof(buf), file)) { lineno++; + if (buf[0] == '#') + continue; p = strchr(buf, '\n'); if (p) *p = 0;