all: use G_VALUE_INIT to initialize GValue variables

It makes the initializations more explicit.
G_VALUE_INIT is available since glib 2.30, and NM now require glib >= 2.32
This commit is contained in:
Jiří Klimeš
2013-03-22 10:49:19 +01:00
parent a78a1847c6
commit 82fb1978a4
21 changed files with 57 additions and 57 deletions

View File

@@ -1257,7 +1257,7 @@ dbus_get_vpn_state (const char *path)
DBusGConnection *connection;
DBusGProxy *proxy;
GError *error = NULL;
GValue value = {0,};
GValue value = G_VALUE_INIT;
NMVPNConnectionState state = NM_VPN_CONNECTION_STATE_UNKNOWN;
connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, NULL);