[gcab] Add missing call to g_type_init()



commit 47520f0c3df80be28e5f1c3805d308ae45c099e3
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Fri Feb 8 16:34:27 2013 +0100

    Add missing call to g_type_init()

 gcab.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gcab.c b/gcab.c
index 7d9ec32..b99cce6 100644
--- a/gcab.c
+++ b/gcab.c
@@ -99,6 +99,9 @@ main (int argc, char *argv[])
     bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
     bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
+#if !GLIB_CHECK_VERSION(2,35,1)
+    g_type_init ();
+#endif
     g_set_prgname (PACKAGE_NAME);
 
     context = g_option_context_new (_("- create a Cabinet file"));


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