diff options
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/providers/vee/camel-vee-folder.c | 4 |
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)); |