Skip to content

Commit

Permalink
Added support for line comments starting with ';'
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevilla committed Mar 29, 2011
1 parent 455b6e1 commit ca68e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iniparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ static line_status iniparser_line(
if (len<1) {
/* Empty line */
sta = LINE_EMPTY ;
} else if (line[0]=='#') {
} else if (line[0]=='#' || line[0]==';') {
/* Comment line */
sta = LINE_COMMENT ;
} else if (line[0]=='[' && line[len-1]==']') {
Expand Down

0 comments on commit ca68e9d

Please sign in to comment.