mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix Config parsing.
Wtf did that mean? P.S. clang's warnings are awesome.
This commit is contained in:
@@ -58,8 +58,10 @@ bool CConfig::Parse(CFile& file, CString& sErrorMsg)
|
||||
std::stack<ConfigStackEntry> ConfigStack;
|
||||
bool bCommented = false; // support for /**/ style comments
|
||||
|
||||
if (!file.Seek(0))
|
||||
return "Could not seek to the beginning of the config.";
|
||||
if (!file.Seek(0)) {
|
||||
sErrorMsg = "Could not seek to the beginning of the config.";
|
||||
return false;
|
||||
}
|
||||
|
||||
while (file.ReadLine(sLine)) {
|
||||
uLineNum++;
|
||||
|
||||
Reference in New Issue
Block a user