SF.net SVN: geany: [954] trunk/src/sci_cb.c

ntrel at users.sourceforge.net ntrel at xxxxx
Wed Nov 1 16:18:30 UTC 2006


Revision: 954
          http://svn.sourceforge.net/geany/?rev=954&view=rev
Author:   ntrel
Date:     2006-11-01 08:18:26 -0800 (Wed, 01 Nov 2006)

Log Message:
-----------
Fix a segfault in on_new_line_added.

Modified Paths:
--------------
    trunk/src/sci_cb.c

Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c	2006-11-01 16:03:41 UTC (rev 953)
+++ trunk/src/sci_cb.c	2006-11-01 16:18:26 UTC (rev 954)
@@ -301,6 +301,8 @@
 {
 	gint pos = sci_get_current_position(sci);
 
+	if (doc_list[idx].file_type == NULL) return;
+
 	// simple indentation
 	if (doc_list[idx].use_auto_indention)
 	{


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