From: Russ Allbery Date: Mon, 12 Jun 2006 20:20:21 +0000 (+0000) Subject: Allow whitespace in front of comments. Patch from Jeremie Koenig X-Git-Tag: krb5-1.5-beta1~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33f51a34061c991cdbb0b4498794ef274c231a31;p=krb5.git Allow whitespace in front of comments. Patch from Jeremie Koenig Ticket: 1988 Version_Reported: 1.3.6 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18118 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c index d229bbb3a..c5ef4f8e7 100644 --- a/src/util/profile/prof_parse.c +++ b/src/util/profile/prof_parse.c @@ -84,10 +84,10 @@ static errcode_t parse_std_line(char *line, struct parse_state *state) if (*line == 0) return 0; - if (line[0] == ';' || line[0] == '#') - return 0; - strip_line(line); cp = skip_over_blanks(line); + if (cp[0] == ';' || cp[0] == '#') + return 0; + strip_line(cp); ch = *cp; if (ch == 0) return 0;