[evolution-data-server] Bug #584797 - Do not set internal SQLite3 structures on error
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Bug #584797 - Do not set internal SQLite3 structures on error
- Date: Thu, 4 Jun 2009 14:45:48 -0400 (EDT)
commit fe2da25cd952317d15d50429eb6e8f169377ab81
Author: Milan Crha <mcrha redhat com>
Date: Thu Jun 4 20:45:01 2009 +0200
Bug #584797 - Do not set internal SQLite3 structures on error
---
camel/camel-db.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/camel/camel-db.c b/camel/camel-db.c
index 37ff79f..34007e6 100644
--- a/camel/camel-db.c
+++ b/camel/camel-db.c
@@ -282,6 +282,9 @@ camel_sqlite3_vfs_xOpen (sqlite3_vfs *pVfs, const gchar *zPath, sqlite3_file *pF
res = old_vfs->xOpen (old_vfs, zPath, cFile->old_vfs_file, flags, pOutFlags);
+ if (res != SQLITE_OK)
+ return res;
+
g_static_rec_mutex_lock (&only_once_lock);
/* cFile->old_vfs_file->pMethods is NULL when open failed for some reason,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]