diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 15:52:22 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 16:11:16 -0400 |
commit | 91b147622bbd313200b79ab97811b6dc3ba9bdcc (patch) | |
tree | dd6b0faa7c8183981515fdee169b3c0ece880172 /gtk/gtkbuilderparser.c | |
parent | 770fc90e7cf24e2406a8c778596c79f94ebb3a2e (diff) | |
download | gtk+-91b147622bbd313200b79ab97811b6dc3ba9bdcc.tar.gz |
gtkbuilderparser: Add some assertions
Add some assertions that things are non-NULL when we know they
are, so that coverity gets it.
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r-- | gtk/gtkbuilderparser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index 160c7bcdb5..9153f1515c 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -1141,6 +1141,8 @@ end_element (GMarkupParseContext *context, PropertyInfo *prop_info = state_pop_info (data, PropertyInfo); CommonInfo *info = state_peek_info (data, CommonInfo); + g_assert (info != NULL); + /* Normal properties */ if (strcmp (info->tag.name, "object") == 0 || strcmp (info->tag.name, "template") == 0) @@ -1176,6 +1178,7 @@ end_element (GMarkupParseContext *context, { SignalInfo *signal_info = state_pop_info (data, SignalInfo); ObjectInfo *object_info = (ObjectInfo*)state_peek_info (data, CommonInfo); + g_assert (object_info != NULL); signal_info->object_name = g_strdup (object_info->id); object_info->signals = g_slist_prepend (object_info->signals, signal_info); } |