summaryrefslogtreecommitdiffstats
path: root/src/util/profile/prof_parse.c
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2006-06-12 20:20:21 +0000
committerRuss Allbery <rra@stanford.edu>2006-06-12 20:20:21 +0000
commit33f51a34061c991cdbb0b4498794ef274c231a31 (patch)
tree84e9c1e2953b1587a722c008fe610901a73716fb /src/util/profile/prof_parse.c
parente083bdd1b4caaffa59c9a87aa65cfa488053d4a9 (diff)
downloadkrb5-33f51a34061c991cdbb0b4498794ef274c231a31.tar.gz
krb5-33f51a34061c991cdbb0b4498794ef274c231a31.tar.xz
krb5-33f51a34061c991cdbb0b4498794ef274c231a31.zip
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
Diffstat (limited to 'src/util/profile/prof_parse.c')
-rw-r--r--src/util/profile/prof_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c
index d229bbb3ad..c5ef4f8e7b 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;