Browse Source

Allow empty lines in config files

pull/1509/head
Max-F-Helm 3 months ago
parent
commit
b70313cf5e
  1. 2
      src/config.cpp

2
src/config.cpp

@ -381,7 +381,7 @@ Config::from_stream(std::istream &istrm_,
while(std::getline(istrm_,line,'\n'))
{
line = str::trim(line);
if(!line.empty() && (line[0] == '#'))
if(line.empty() || (line[0] == '#'))
continue;
str::splitkv(line,'=',&key,&val);

Loading…
Cancel
Save