[Commits] quicksearch.c 1.1.2.118 1.1.2.119

colin at claws-mail.org colin at claws-mail.org
Thu Nov 8 10:09:39 CET 2012


Update of /home/claws-mail/claws/src/gtk
In directory srv:/tmp/cvs-serv29316/src/gtk

Modified Files:
      Tag: gtk2
	quicksearch.c 
Log Message:
2012-11-08 [colin]	3.8.1cvs114

	* src/gtk/quicksearch.c
		Fix going active with NULL matchstring (for example
		when changing type before typing anything)

Index: quicksearch.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/quicksearch.c,v
retrieving revision 1.1.2.118
retrieving revision 1.1.2.119
diff -u -d -r1.1.2.118 -r1.1.2.119
--- quicksearch.c	6 Nov 2012 22:07:41 -0000	1.1.2.118
+++ quicksearch.c	8 Nov 2012 09:09:37 -0000	1.1.2.119
@@ -144,7 +144,8 @@
 	}
 
 	do {
-		gboolean active = g_strcmp0(quicksearch->request.matchstring, "");
+		gboolean active = quicksearch->request.matchstring != NULL 
+				   && g_strcmp0(quicksearch->request.matchstring, "");
 		advsearch_set(quicksearch->asearch, quicksearch->request.type,
 				quicksearch->request.matchstring);
 



More information about the Commits mailing list