summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2013-03-22 10:49:19 +0100
committerJiří Klimeš <jklimes@redhat.com>2013-03-25 08:41:18 +0100
commit82fb1978a45e61aaaf9d74042e6262b648bdd548 (patch)
tree5144bb0b8b25de63da8a8ca207d80be70dc745dd /examples
parenta78a1847c6ccf9a95d46b9b819a8988d1d89f11c (diff)
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
Diffstat (limited to 'examples')
-rw-r--r--examples/C/glib/get-active-connections-dbus-glib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/C/glib/get-active-connections-dbus-glib.c b/examples/C/glib/get-active-connections-dbus-glib.c
index f27c44fba9..d6bd15c708 100644
--- a/examples/C/glib/get-active-connections-dbus-glib.c
+++ b/examples/C/glib/get-active-connections-dbus-glib.c
@@ -98,8 +98,8 @@ static void
get_active_connection_details (DBusGConnection *bus, const char *obj_path)
{
DBusGProxy *props_proxy;
- GValue path_value = { 0 };
- GValue serv_value = { 0 };
+ GValue path_value = G_VALUE_INIT;
+ GValue serv_value = G_VALUE_INIT;
GError *error = NULL;
const char *path = NULL, *service = NULL;
@@ -179,7 +179,7 @@ static void
get_active_connections (DBusGConnection *bus, DBusGProxy *proxy)
{
GError *error = NULL;
- GValue value = { 0 };
+ GValue value = G_VALUE_INIT;
GPtrArray *paths = NULL;
int i;