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

[PATCH master] Init g_type in is_wireless_device.



Causes glib errors of this sort in anaconda 14.11:
(process:424): GLib-GObject-CRITICAL **: gtype.c:2710: 
You forgot to call g_type_init()

---
 pyanaconda/isys/iface.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/isys/iface.c b/pyanaconda/isys/iface.c
index afdc59f..0a9ad6c 100644
--- a/pyanaconda/isys/iface.c
+++ b/pyanaconda/isys/iface.c
@@ -552,6 +552,8 @@ int is_wireless_device(char *ifname){
     const char *iface;
     int i;
 
+    g_type_init();
+
     client = nm_client_new();
     if (!client) {
         return 0;
-- 
1.6.0.6


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