SF.net SVN: geany:[3230] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Nov 15 15:53:05 UTC 2008


Revision: 3230
          http://geany.svn.sourceforge.net/geany/?rev=3230&view=rev
Author:   eht16
Date:     2008-11-15 15:53:05 +0000 (Sat, 15 Nov 2008)

Log Message:
-----------
Fix possible crash when using the Find in Files dialog.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/search.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-11-15 15:52:36 UTC (rev 3229)
+++ trunk/ChangeLog	2008-11-15 15:53:05 UTC (rev 3230)
@@ -3,6 +3,7 @@
  * src/search.c:
    Fix wrong highlighting of search results when using 'Mark' in
    the Find dialog.
+   Fix possible crash when using the Find in Files dialog.
 
 
 2008-11-14  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/search.c
===================================================================
--- trunk/src/search.c	2008-11-15 15:52:36 UTC (rev 3229)
+++ trunk/src/search.c	2008-11-15 15:53:05 UTC (rev 3230)
@@ -1357,11 +1357,13 @@
 {
 	if (condition & (G_IO_IN | G_IO_PRI))
 	{
-		gchar *msg, *utf8_msg = NULL;
+		gchar *msg, *utf8_msg;
 		gchar *enc = data;
 
 		while (g_io_channel_read_line(source, &msg, NULL, NULL, NULL) && msg)
 		{
+			utf8_msg = NULL;
+			
 			g_strstrip(msg);
 			if (! g_utf8_validate(msg, -1, NULL))
 			{


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list