Commit 7f4d6839 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Fixed crasher on null string when parsing modifiers.


	* plugins/gtk+/glade-gtk.c: Fixed crasher on null string
	  when parsing modifiers.


svn path=/trunk/; revision=1765
parent 64bb8141
......@@ -6,6 +6,9 @@
Implemented saving of properties, signals, atkprops
accelerators: everything is saving properly now !
* plugins/gtk+/glade-gtk.c: Fixed crasher on null string
when parsing modifiers.
2008-04-02 Tristan Van Berkom <tvb@gnome.org>
* gladeui/glade-widget-adaptor.[ch]: Added new entry points
......
This diff is collapsed.
......@@ -283,7 +283,7 @@ glade_gtk_parse_modifiers (const gchar *string)
const gchar *pos = string;
GdkModifierType modifiers = 0;
while (pos[0])
while (pos && pos[0])
{
if (!strncmp(pos, "GDK_", 4)) {
pos += 4;
......
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