Fix potential failure in MySQL CM and fix describe method

This commit is contained in:
Brendan LE GLAUNEC
2016-08-31 12:46:21 +02:00
committed by Brendan Le Glaunec
parent d9945f5e26
commit 34351ae14e
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;
}