klocwork: fix risk issues

This commit is contained in:
Hong, Yang A
2022-05-31 06:30:18 +00:00
committed by Konstantinos Margaritis
parent 88a1048ae7
commit 2d521d64a2
15 changed files with 61 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ public:
std::lock_guard<std::mutex> lock(mutex);
if (failed) {
// We have previously failed to compile this database.
return nullptr;
throw CompileFailed("Unable to compile db previously.");
}
if (db) {
return db;