Fix segfault on Tools->Reload Configuration when no documents are

open (#3037079).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5167 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-08-16 12:21:22 +00:00
parent 0f7d1928cc
commit b8f3ce774b
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2010-08-16 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/filetypes.c:
Fix segfault on Tools->Reload Configuration when no documents are
open (#3037079).
2010-08-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* wscript:

View File

@ -1659,8 +1659,12 @@ void filetypes_reload(void)
/* filetypes_load_config() will skip not loaded filetypes */
filetypes_load_config(i, TRUE);
}
/* update document styling */
current_doc = document_get_current();
if (!current_doc)
return;
/* update document styling */
foreach_document(i)
{
if (current_doc != documents[i])