dhcp-helper: call g_type_init() to support pre 2.36.0 glib

https://bugzilla.gnome.org/show_bug.cgi?id=758614

[thaller@redhat.com: original patch modified to use nm_g_type_init()]
This commit is contained in:
Glenn Washburn 2015-11-24 19:42:08 +00:00 committed by Thomas Haller
parent 960127422d
commit 7a97d16944

View file

@ -97,6 +97,8 @@ main (int argc, char *argv[])
GDBusConnection *connection;
GError *error = NULL;
nm_g_type_init ();
connection = g_dbus_connection_new_for_address_sync ("unix:path=" NMRUNDIR "/private-dhcp",
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT,
NULL, NULL, &error);