summaryrefslogtreecommitdiff
path: root/camel/camel-search-sql.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-08-04 07:09:53 +0000
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-08-04 07:09:53 +0000
commit5e1aa4144d181342387d0fc69e8b9714b3bccf47 (patch)
tree2acec4eccf43682c5f4fc0f3cb9d03e371cb4b5a /camel/camel-search-sql.c
parent20758529793bff09e7e2deaebf851fb11490fbf2 (diff)
downloadevolution-data-server-5e1aa4144d181342387d0fc69e8b9714b3bccf47.tar.gz
Fix while moving to offline.
2008-08-04 Srinivasa Ragavan <sragavan@novell.com> * camel-folder-search.c: (camel_folder_search_search): Fix while moving to offline. * camel-search-sql.c: (camel_sexp_to_sql): svn path=/trunk/; revision=9255
Diffstat (limited to 'camel/camel-search-sql.c')
-rw-r--r--camel/camel-search-sql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/camel-search-sql.c b/camel/camel-search-sql.c
index bac08f129..932f3d39a 100644
--- a/camel/camel-search-sql.c
+++ b/camel/camel-search-sql.c
@@ -229,6 +229,9 @@ camel_sexp_to_sql (const char *txt)
d(printf("len = %d\n", strlen (txt)));
+ if (!txt || !*txt)
+ return NULL;
+
g_scanner_input_text (scanner, txt, strlen(txt));
while (!g_scanner_eof (scanner)) {
Node *mnode;