mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Allow empty lines in config ini files (#1509)
* Allow empty lines in config files * Add example comment to ini example in docs/quickstart.md --------- Co-authored-by: Max-F-Helm <m7t24zklr@relay.firefox.com>
This commit is contained in:
parent
df19f99976
commit
dd1bea52cd
2 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue