[evolution-data-server] Bug #599735 - evolution crashes on start up
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #599735 - evolution crashes on start up
- Date: Tue, 27 Oct 2009 07:23:46 +0000 (UTC)
commit 9093559919e37c6247ea83f2bdaadacd329dc3b1
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Tue Oct 27 12:50:56 2009 +0530
Bug #599735 - evolution crashes on start up
camel/camel-db.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/camel/camel-db.c b/camel/camel-db.c
index c888c53..65cb06c 100644
--- a/camel/camel-db.c
+++ b/camel/camel-db.c
@@ -398,7 +398,6 @@ camel_db_open (const gchar *path, CamelException *ex)
static GOnce vfs_once = G_ONCE_INIT;
CamelDB *cdb;
sqlite3 *db;
- gchar *cache;
gint ret;
g_once (&vfs_once, (GThreadFunc) init_sqlite_vfs, NULL);
@@ -429,11 +428,13 @@ camel_db_open (const gchar *path, CamelException *ex)
d(g_print ("\nDatabase succesfully opened \n"));
/* Which is big / costlier ? A Stack frame or a pointer */
- if (g_getenv("CAMEL_SQLITE_DEFAULT_CACHE_SIZE")!=NULL)
- cache = g_strdup_printf ("PRAGMA cache_size=%s", g_getenv("CAMEL_SQLITE_DEFAULT_CACHE_SIZE"));
+ if (g_getenv("CAMEL_SQLITE_DEFAULT_CACHE_SIZE")!=NULL) {
+ gchar *cache = NULL;
- camel_db_command (cdb, cache, NULL);
- g_free (cache);
+ cache = g_strdup_printf ("PRAGMA cache_size=%s", g_getenv("CAMEL_SQLITE_DEFAULT_CACHE_SIZE"));
+ camel_db_command (cdb, cache, NULL);
+ g_free (cache);
+ }
camel_db_command (cdb, "ATTACH DATABASE ':memory:' AS mem", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]