v1.0.5 : Fixed a potential failure in MySQL CM and fixed code

This commit is contained in:
Brendan LE GLAUNEC
2016-08-31 12:46:21 +02:00
parent 27b296c9d2
commit ae3329bd25
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ main(int argc, char* argv[]) {
auto plug = std::make_shared<etix::cameradar::cache_manager>(conf.second.cache_manager_path,
conf.second.cache_manager_name);
if (not plug->make_instance()) {
if (not plug || not plug->make_instance()) {
LOG_ERR_(std::string("Invalid cache manager "), "cameradar");
return false;
}