Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws
authorwwp <wwp@free.fr>
Fri, 16 Dec 2016 08:16:15 +0000 (09:16 +0100)
committerwwp <wwp@free.fr>
Fri, 16 Dec 2016 08:16:15 +0000 (09:16 +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 ) {