Commit c3fcd42e authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Handle misplaced property elements without asserting.

2007-11-09  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkbuilderparser.c (parse_property): Handle misplaced
        property elements without asserting.


svn path=/trunk/; revision=18976
parent 50a766c9
2007-11-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbuilderparser.c (parse_property): Handle misplaced
property elements without asserting.
2007-11-09 Kristian Rietveld <kris@imendio.com>
* gdk/gdkwindow.c (gdk_window_process_all_updates): guard for
......
......@@ -379,7 +379,11 @@ parse_property (ParserData *data,
gboolean translatable = FALSE;
int i;
g_assert (data->stack != NULL);
if (data->stack == NULL)
{
error_invalid_tag (data, "property", NULL, error);
return;
}
for (i = 0; names[i] != NULL; i++)
{
......
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