diff --git a/src/sicccPersister.cc b/src/sicccPersister.cc index 74cb754..45e5dfb 100644 --- a/src/sicccPersister.cc +++ b/src/sicccPersister.cc @@ -17,7 +17,7 @@ int SicccPersister::write_sicccfile() { assert(!json_file_name.empty()); - std::string store_str = merouterin.get_persist_path() + "/" + beautify_filename(); + std::string store_str = merouter.get_persist_path() + "/" + beautify_filename(); assert(root); int ret = json_dump_file(root, store_str.c_str(), JSON_INDENT(4)); return ret; @@ -37,7 +37,7 @@ SicccPersister::read_sicccdir() struct dirent *entry = nullptr; std::vector v; json_error_t *error = nullptr; - if ((dir = opendir(merouterin.get_persist_path().c_str())) == NULL) { + if ((dir = opendir(merouter.get_persist_path().c_str())) == NULL) { std::cerr << "Error could not open directory" << std::endl; return v; // should throw exception instea1d }