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
This commit is contained in:
parent
50a766c95f
commit
c3fcd42eda
2 changed files with 10 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue