diff --git a/dram/src/common/TlmRecorder.cpp b/dram/src/common/TlmRecorder.cpp index 58b8a4c8..36baa1cf 100644 --- a/dram/src/common/TlmRecorder.cpp +++ b/dram/src/common/TlmRecorder.cpp @@ -216,7 +216,7 @@ void TlmRecorder::openDB(std::string name) boost::filesystem::wpath file(name); if(boost::filesystem::exists(file)) boost::filesystem::remove(file); - if (sqlite3_open(name.c_str(), &db)) + if (sqlite3_open(name.c_str(), &db) != SQLITE_OK) { SC_REPORT_FATAL("Error in TraceRecorder", "Error cannot open database"); sqlite3_close(db);