Small improvement on code readability.
Comparing the value returned from sqlite3_open() with proper value.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user