Fixing missing initializer in glib/test/markup-collect.c

glib/tests/markup-collect.c:79:1: error: missing initializer for field ‘end_element’ of ‘GMarkupParser’ {aka ‘struct _GMarkupParser’}
   79 | static GMarkupParser parser = { start };
      | ^~~~~~

glib/tests/markup-collect.c:198:1: error: missing initializer for field ‘end_element’ of ‘GMarkupParser’ {aka ‘struct _GMarkupParser’}
  198 | };
      | ^
This commit is contained in:
Emmanuel Fleury 2020-11-08 21:16:49 +01:00
parent 2292960690
commit 93dd614562

View File

@ -76,7 +76,7 @@ start (GMarkupParseContext *context,
}
}
static GMarkupParser parser = { start };
static GMarkupParser parser = { start, NULL, NULL, NULL, NULL };
struct test
{
@ -194,7 +194,7 @@ start_element (GMarkupParseContext *context,
}
static GMarkupParser cleanup_parser = {
start_element
start_element, NULL, NULL, NULL, NULL
};
static void