Allow whitespace in front of comments. Patch from Jeremie Koenig
authorRuss Allbery <rra@stanford.edu>
Mon, 12 Jun 2006 20:20:21 +0000 (20:20 +0000)
committerRuss Allbery <rra@stanford.edu>
Mon, 12 Jun 2006 20:20:21 +0000 (20:20 +0000)
Ticket: 1988
Version_Reported: 1.3.6

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18118 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/prof_parse.c

index d229bbb3ad9a0e30cca7b6f315f289568cc75d9f..c5ef4f8e7bdc9548e6a9740c66eaf57f2e4a02db 100644 (file)
@@ -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;