Commit 2e9036f3 authored by François Grisez's avatar François Grisez
Browse files

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

parent 948ae319
...@@ -591,6 +591,7 @@ void linphone_core_message_storage_init(LinphoneCore *lc){ ...@@ -591,6 +591,7 @@ void linphone_core_message_storage_init(LinphoneCore *lc){
errmsg=sqlite3_errmsg(db); errmsg=sqlite3_errmsg(db);
ms_error("Error in the opening: %s.\n", errmsg); ms_error("Error in the opening: %s.\n", errmsg);
sqlite3_close(db); sqlite3_close(db);
return;
} }
linphone_message_storage_activate_debug(db, lc->debug_storage); linphone_message_storage_activate_debug(db, lc->debug_storage);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment