From b70313cf5ec8743d42428fa07e05c54c9b9f5d8b Mon Sep 17 00:00:00 2001 From: Max-F-Helm Date: Wed, 13 Aug 2025 09:19:28 +0200 Subject: [PATCH] Allow empty lines in config files --- src/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.cpp b/src/config.cpp index d5408bb4..25ff30e9 100644 --- a/src/config.cpp +++ b/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);