From c1ceea6c2d2c84fc3eb274d30203e7b655adeccc Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Mon, 6 Nov 2017 11:58:21 +0100 Subject: [PATCH] Fix database init --- src/core/core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 505cc4c8d..4e294ec3f 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -48,9 +48,9 @@ shared_ptr Core::create (LinphoneCore *cCore) { d->mainDb.reset(new MainDb(core->getSharedFromThis())); AbstractDb::Backend backend; - string uri = L_C_TO_STRING(lp_config_get_string(linphone_core_get_config(d->cCore), "storage", "backend", nullptr)); + string uri = L_C_TO_STRING(lp_config_get_string(linphone_core_get_config(d->cCore), "storage", "uri", nullptr)); if (!uri.empty()) - backend = strcmp(lp_config_get_string(linphone_core_get_config(d->cCore), "storage", "uri", nullptr), "mysql") == 0 + backend = strcmp(lp_config_get_string(linphone_core_get_config(d->cCore), "storage", "backend", nullptr), "mysql") == 0 ? MainDb::Mysql : MainDb::Sqlite3; else {