aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-11 05:49:47 +0800
committerDan Winship <danw@src.gnome.org>2000-07-11 05:49:47 +0800
commit83fa610d1ed92914aaabf8da8510e4a5655e6bed (patch)
tree7af109b4299d40566f5e7ac94e209139c2de0cb7 /camel/providers
parentb104482c8f50cd485536f1792c527137794f19aa (diff)
downloadgsoc2013-evolution-83fa610d1ed92914aaabf8da8510e4a5655e6bed.tar
gsoc2013-evolution-83fa610d1ed92914aaabf8da8510e4a5655e6bed.tar.gz
gsoc2013-evolution-83fa610d1ed92914aaabf8da8510e4a5655e6bed.tar.bz2
gsoc2013-evolution-83fa610d1ed92914aaabf8da8510e4a5655e6bed.tar.lz
gsoc2013-evolution-83fa610d1ed92914aaabf8da8510e4a5655e6bed.tar.xz
gsoc2013-evolution-83fa610d1ed92914aaabf8da8510e4a5655e6bed.tar.zst
gsoc2013-evolution-83fa610d1ed92914aaabf8da8510e4a5655e6bed.zip
Initialize a variable to make this not crash again. And fix a bug so it
* providers/vee/camel-vee-folder.c (vee_search_by_expression): Initialize a variable to make this not crash again. And fix a bug so it actually does something. svn path=/trunk/; revision=4056
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/vee/camel-vee-folder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/vee/camel-vee-folder.c b/camel/providers/vee/camel-vee-folder.c
index 8dc88cdba2..70f03e6c0e 100644
--- a/camel/providers/vee/camel-vee-folder.c
+++ b/camel/providers/vee/camel-vee-folder.c
@@ -376,7 +376,7 @@ static GPtrArray *
vee_search_by_expression(CamelFolder *folder, const char *expression, CamelException *ex)
{
GList *node;
- GPtrArray *matches, *result;
+ GPtrArray *matches, *result = g_ptr_array_new ();
char *expr;
CamelVeeFolder *vf = (CamelVeeFolder *)folder;
struct _CamelVeeFolderPrivate *p = _PRIVATE(vf);
@@ -387,7 +387,7 @@ vee_search_by_expression(CamelFolder *folder, const char *expression, CamelExcep
CamelFolder *f = node->data;
int i;
- matches = camel_folder_search_by_expression(f, vf->expression, ex);
+ matches = camel_folder_search_by_expression(f, expression, ex);
for (i = 0; i < matches->len; i++) {
char *uid = matches->pdata[i];
g_ptr_array_add(result, g_strdup_printf("%p:%s", f, uid));