Kaydet (Commit) 8f4106b0 authored tarafından Nick Treleaven's avatar Nick Treleaven

Fix possible segfault for XML tag completion when no '<' brace could

be found.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2750 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst d832e4fe
......@@ -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>
......
......@@ -1731,7 +1731,7 @@ static gboolean handle_xml(GeanyDocument *doc, gchar ch)
{
/* ignore tag */
}
else if (*str_found != '\0')
else if (NZV(str_found))
{
insert_closing_tag(doc, pos, ch, str_found);
result = TRUE;
......
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