Index: camel/camel-exchange-folder.c
===================================================================
--- camel/camel-exchange-folder.c	(revision 1723)
+++ camel/camel-exchange-folder.c	(working copy)
@@ -465,8 +465,7 @@ search_by_expression (CamelFolder *folde
 		      CamelException *ex)
 {
 	CamelFolderSearch *search;
-	GPtrArray *matches, *response;
-	int i;
+	GPtrArray *matches;
 
 	search = camel_exchange_search_new ();
 	camel_folder_search_set_folder (search, folder);
@@ -474,7 +473,7 @@ search_by_expression (CamelFolder *folde
 
 	camel_object_unref (CAMEL_OBJECT (search));
 
-	return response;
+	return matches;
 }
 
 static GPtrArray *
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 1723)
+++ ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-08-05  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #546385
+
+	* camel/camel-exchange-folder.c: (search_by_expression):
+	Return initialized pointer instead of some uninitialized variable.
+
 2008-08-05  Srinivasa Ragavan  <sragavan@novell.com>
 
 	* camel/camel-exchange-folder.c (search_by_expression): Don't mimic.
