[PATCH master] Init g_type in is_wireless_device.

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux