summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilderparser.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-11-10 02:36:56 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-11-10 02:36:56 +0000
commitc3fcd42eda7ccee6fe669a263b0549af9e4768bb (patch)
tree3b38ac37bf81a863e072dd98e7cc9cab75173234 /gtk/gtkbuilderparser.c
parent50a766c95ffe421269d618dd753d505c8de8e575 (diff)
downloadgtk+-c3fcd42eda7ccee6fe669a263b0549af9e4768bb.tar.gz
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
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r--gtk/gtkbuilderparser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index a394e1e8f4..b06df7951a 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -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++)
{