SF.net SVN: geany: [2750] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Jul 3 17:13:37 UTC 2008


Revision: 2750
          http://geany.svn.sourceforge.net/geany/?rev=2750&view=rev
Author:   ntrel
Date:     2008-07-03 10:13:34 -0700 (Thu, 03 Jul 2008)

Log Message:
-----------
Fix possible segfault for XML tag completion when no '<' brace could
be found.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-07-03 17:04:12 UTC (rev 2749)
+++ trunk/ChangeLog	2008-07-03 17:13:34 UTC (rev 2750)
@@ -8,6 +8,9 @@
  * src/keybindings.c:
    Avoid flickering the menu bar when 'Override Geany keybindings'
    Terminal pref is set.
+ * src/editor.c:
+   Fix possible segfault for XML tag completion when no '<' brace could
+   be found.
 
 
 2008-07-03  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2008-07-03 17:04:12 UTC (rev 2749)
+++ trunk/src/editor.c	2008-07-03 17:13:34 UTC (rev 2750)
@@ -1731,7 +1731,7 @@
 	{
 		/* ignore tag */
 	}
-	else if (*str_found != '\0')
+	else if (NZV(str_found))
 	{
 		insert_closing_tag(doc, pos, ch, str_found);
 		result = TRUE;


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