mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +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)
|
void Server::readConfig(char *filename)
|
||||||
{
|
{
|
||||||
config::TOMLParser parser(filename);
|
config::TOMLParser parser(filename);
|
||||||
parser.parse();
|
|
||||||
_root = parser.root;
|
_root = parser.root;
|
||||||
|
parser.parse();
|
||||||
DBOUT << RED << "PARSED !!!" << ENDL;
|
DBOUT << RED << "PARSED !!!" << ENDL;
|
||||||
|
|
||||||
TOMLMap::iterator it1;
|
TOMLMap::iterator it1;
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ namespace config
|
|||||||
{
|
{
|
||||||
|
|
||||||
TOMLParser::TOMLParser(char *filename) : tokenizer(filename)
|
TOMLParser::TOMLParser(char *filename) : tokenizer(filename)
|
||||||
{};
|
{
|
||||||
|
root = new TOMLMap;
|
||||||
|
}
|
||||||
|
|
||||||
void TOMLParser::processMap(void)
|
void TOMLParser::processMap(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user