[glib: 8/9] Fix missing initializer warning in gio/glib-compile-resources.c




commit bdcd7eca3b0db3fddcb2d17be85c3e06ec4447dd
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 23:04:06 2020 +0100

    Fix missing initializer warning in gio/glib-compile-resources.c
    
    gio/glib-compile-resources.c: In function ‘parse_resource_file’:
    gio/glib-compile-resources.c:553:3: error: missing initializer for field ‘passthrough’ of ‘GMarkupParser’ 
{aka ‘struct _GMarkupParser’}
      553 |   GMarkupParser parser = { start_element, end_element, text };
          |   ^~~~~~~~~~~~~

 gio/glib-compile-resources.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index f3675c152..74373e5b0 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -550,7 +550,7 @@ parse_resource_file (const gchar *filename,
                      gboolean     collect_data,
                      GHashTable  *files)
 {
-  GMarkupParser parser = { start_element, end_element, text };
+  GMarkupParser parser = { start_element, end_element, text, NULL, NULL };
   ParseState state = { 0, };
   GMarkupParseContext *context;
   GError *error = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]