diff --git a/src/fuzzyduck.cpp b/src/fuzzyduck.cpp index e95662b..a385bcf 100644 --- a/src/fuzzyduck.cpp +++ b/src/fuzzyduck.cpp @@ -32,11 +32,12 @@ void FuzzyDuck::BeginFuzzing() { RunQuery("PRAGMA enable_verification"); } if (!randoms_config_filepath.empty()) { - randoms_config_handle = fs.OpenFile(randoms_config_filepath, FileFlags::FILE_FLAGS_READ); config = GetConfigFromFile(randoms_config_filepath.c_str()); if (!config.size()) { config = GetDefaultConfig(); } + } else { + config = GetDefaultConfig(); } } @@ -44,9 +45,6 @@ void FuzzyDuck::EndFuzzing() { if (complete_log_handle) { complete_log_handle->Close(); } - if (randoms_config_handle) { - randoms_config_handle->Close(); - } } void FuzzyDuck::Fuzz() { diff --git a/src/include/fuzzyduck.hpp b/src/include/fuzzyduck.hpp index d66aa5c..70c6279 100644 --- a/src/include/fuzzyduck.hpp +++ b/src/include/fuzzyduck.hpp @@ -13,7 +13,6 @@ #include "random_nums_config.hpp" namespace duckdb { -using namespace std; struct FileHandle;