From 2e9036f3656d510c3283b74ec41a3e4494a71183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Fri, 20 Feb 2015 15:17:02 +0100 Subject: [PATCH] Fix crach on windows: avoid creating message storage database when the SQLite file cannot be opened --- coreapi/message_storage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/message_storage.c b/coreapi/message_storage.c index 2684ba0b5..91fd8e333 100644 --- a/coreapi/message_storage.c +++ b/coreapi/message_storage.c @@ -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);