From: Frédéric Marchal Date: Mon, 3 May 2010 09:51:28 +0000 (+0000) Subject: Ignore comments in exclude_code file X-Git-Tag: v2.3-pre2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa95e3c47da3b0c561912a11b97288a1b8ff851b;p=thirdparty%2Fsarg.git Ignore comments in exclude_code file --- diff --git a/util.c b/util.c index ac3e505..cfa4371 100644 --- a/util.c +++ b/util.c @@ -1302,6 +1302,7 @@ void load_excludecodes(const char *ExcludeCodes) Stored=0; while(fgets(data,sizeof(data),fp_in)!=NULL) { + if (data[0]=='#') continue; for (i=strlen(data)-1 ; i>=0 && (unsigned char)data[i]<=' ' ; i--) data[i]=0; if (i<0) continue; if (Stored+i+1>=MemSize) {