Fix non-initialized variable in glib/gmarkup.c

This commit is contained in:
Loic Le Page 2022-01-19 18:59:51 +01:00 committed by Loïc Le Page
parent 51e54f64c1
commit c118fd5e37

View File

@ -1032,7 +1032,7 @@ emit_start_element (GMarkupParseContext *context,
*/
if ((context->flags & G_MARKUP_IGNORE_QUALIFIED) && strchr (current_element (context), ':'))
{
static const GMarkupParser ignore_parser;
static const GMarkupParser ignore_parser = { 0 };
g_markup_parse_context_push (context, &ignore_parser, NULL);
clear_attributes (context);
return;