aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/vee/camel-vee-folder.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 5ff80fe961..79e74a1004 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2000-07-10 Dan Winship <danw@helixcode.com>
+
+ * 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.
+
2000-07-10 Jeffrey Stedfast <fejj@helixcode.com>
* camel-folder-summary.c: Cleaned up a bunch of compile warnings
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));