fix: pass pointer to root after parser initialization

This commit is contained in:
3lswear
2022-02-20 20:02:00 +03:00
parent 8b2bfe6360
commit be0d34b8d5
2 changed files with 4 additions and 2 deletions

View File

@@ -16,8 +16,8 @@ Server::Server()
void Server::readConfig(char *filename)
{
config::TOMLParser parser(filename);
parser.parse();
_root = parser.root;
parser.parse();
DBOUT << RED << "PARSED !!!" << ENDL;
TOMLMap::iterator it1;