SF.net SVN: geany: [697] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Fri Aug 11 18:16:35 UTC 2006
Revision: 697
Author: eht16
Date: 2006-08-11 11:16:28 -0700 (Fri, 11 Aug 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=697&view=rev
Log Message:
-----------
Fixed segfault when try to (un)comment some code and no filetype is set(reported by John Gabriele).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/sci_cb.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-08-11 18:01:02 UTC (rev 696)
+++ trunk/ChangeLog 2006-08-11 18:16:28 UTC (rev 697)
@@ -5,6 +5,8 @@
Fixed possible segfault when replacing tabs by spaces.
* tagmanager/python.c: Fixed wrong classification of local functions
as methods(thanks to Sebastian Koch).
+ * src/sci_cb.c: Fixed segfault when try to (un)comment some code and
+ no filetype is set(reported by John Gabriele).
2006-08-09 Enrico Tröger <enrico.troeger at uvena.de>
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2006-08-11 18:01:02 UTC (rev 696)
+++ trunk/src/sci_cb.c 2006-08-11 18:16:28 UTC (rev 697)
@@ -859,7 +859,7 @@
gboolean break_loop = FALSE;
filetype *ft;
- if (idx == -1 || ! doc_list[idx].is_valid) return;
+ if (idx == -1 || ! doc_list[idx].is_valid || doc_list[idx].file_type == NULL) return;
ft = doc_list[idx].file_type;
@@ -1000,7 +1000,7 @@
gboolean break_loop = FALSE;
filetype *ft;
- if (idx == -1 || ! doc_list[idx].is_valid) return;
+ if (idx == -1 || ! doc_list[idx].is_valid || doc_list[idx].file_type == NULL) return;
ft = doc_list[idx].file_type;
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