Fixed parese ini file with empty space line

This commit is contained in:
ysqi 2016-06-01 19:58:35 +08:00
parent 2e0bcf611c
commit e9f967102c
1 changed files with 1 additions and 2 deletions

View File

@ -86,11 +86,10 @@ func (ini *IniConfig) parseFile(name string) (*IniConfigContainer, error) {
if _, ok := err.(*os.PathError); ok {
return nil, err
}
line = bytes.TrimSpace(line)
if bytes.Equal(line, bEmpty) {
continue
}
line = bytes.TrimSpace(line)
var bComment []byte
switch {
case bytes.HasPrefix(line, bNumComment):