Kaydet (Commit) e35efa87 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fixed segfault when try to (un)comment some code and no filetype is set(reported by John Gabriele).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@697 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst e52b0bc8
......@@ -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@uvena.de>
......
......@@ -859,7 +859,7 @@ void sci_cb_do_uncomment(gint idx)
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 @@ void sci_cb_do_comment(gint idx)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment