X-Git-Url: http://sjero.net/git/?p=linphone;a=blobdiff_plain;f=coreapi%2Fmessage_storage.c;fp=coreapi%2Fmessage_storage.c;h=deed140c7a48c8a2c410c45719d93845ec2f5c5c;hp=8ba642b6877aecd0216177f057073b2bb435a248;hb=5355e37750d8c32fbd978161966ba80390a8bec0;hpb=bf3e43611778efc483999cacc470aed67fc6b83d diff --git a/coreapi/message_storage.c b/coreapi/message_storage.c index 8ba642b6..deed140c 100644 --- a/coreapi/message_storage.c +++ b/coreapi/message_storage.c @@ -204,13 +204,13 @@ void linphone_create_table(sqlite3* db){ void linphone_core_message_storage_init(LinphoneCore *lc){ int ret; - char *errmsg=NULL; + const char *errmsg; sqlite3 *db; ret=sqlite3_open(lc->chat_db_file,&db); if(ret != SQLITE_OK) { + errmsg=sqlite3_errmsg(db); printf("Error in the opening: %s.\n", errmsg); sqlite3_close(db); - sqlite3_free(errmsg); } linphone_create_table(db); lc->db=db;