Silent up coverity scan.
authorwwp <wwp@free.fr>
Fri, 16 Dec 2016 08:15:45 +0000 (09:15 +0100)
committerwwp <wwp@free.fr>
Fri, 16 Dec 2016 08:15:45 +0000 (09:15 +0100)
src/toolbar.c

index 1f36f71782023d3c53465b6cb0503d286f94ff99..7b7aaaecb81e7357360a2f2d9d6271a0b0f2f0f6 100644 (file)
@@ -409,6 +409,8 @@ static void toolbar_parse_item(XMLFile *file, ToolbarType source, gboolean *rewr
        gchar *name, *value;
        ToolbarItem *item = NULL;
 
+       g_return_if_fail(rewrite != NULL);
+
        attr = xml_get_current_tag_attr(file);
        item = g_new0(ToolbarItem, 1);
        while( attr ) {