From f12f00869983cdb1ff15c48156b421005cdb4d60 Mon Sep 17 00:00:00 2001 From: Emmanuel Fleury Date: Tue, 17 Nov 2020 11:18:15 +0100 Subject: [PATCH] Fix missing initializer warning in gio/gcontenttype.c:load_comment_for_mime_helper() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gio/gcontenttype.c: In function ‘load_comment_for_mime_helper’: gio/gcontenttype.c:409:3: error: missing initializer for field ‘passthrough’ of ‘GMarkupParser’ {aka ‘struct _GMarkupParser’} 409 | }; | ^ --- gio/gcontenttype.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c index 2716c8981..83075fcb6 100644 --- a/gio/gcontenttype.c +++ b/gio/gcontenttype.c @@ -405,7 +405,9 @@ load_comment_for_mime_helper (const char *dir, GMarkupParser parser = { mime_info_start_element, mime_info_end_element, - mime_info_text + mime_info_text, + NULL, + NULL }; filename = g_build_filename (dir, basename, NULL);