Merge pull request #88 from soxwellfb/fix-config-reader

Ignore comments after values
This commit is contained in:
Abhijit Menon-Sen
2015-08-04 13:28:04 +05:30

View File

@@ -383,6 +383,8 @@ parse_line(char *buff, char *name, char *value)
for (++i; i < MAXLEN; ++i)
if (buff[i] == '\'')
continue;
else if (buff[i] == '#')
break;
else if (buff[i] != '\n')
value[j++] = buff[i];
else