mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 12:58:00 +03:00
fix: pass pointer to root after parser initialization
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -26,7 +26,9 @@ namespace config
|
||||
{
|
||||
|
||||
TOMLParser::TOMLParser(char *filename) : tokenizer(filename)
|
||||
{};
|
||||
{
|
||||
root = new TOMLMap;
|
||||
}
|
||||
|
||||
void TOMLParser::processMap(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user