Fix crach on windows: avoid creating message storage database when the SQLite file cannot be opened

This commit is contained in:
François Grisez 2015-02-20 15:17:02 +01:00
parent 948ae319a4
commit 2e9036f365

View file

@ -591,6 +591,7 @@ void linphone_core_message_storage_init(LinphoneCore *lc){
errmsg=sqlite3_errmsg(db);
ms_error("Error in the opening: %s.\n", errmsg);
sqlite3_close(db);
return;
}
linphone_message_storage_activate_debug(db, lc->debug_storage);