summaryrefslogtreecommitdiff
path: root/tools
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 /tools
parenta78a1847c6ccf9a95d46b9b819a8988d1d89f11c (diff)
downloadNetworkManager-82fb1978a45e61aaaf9d74042e6262b648bdd548.tar.gz
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 'tools')
-rw-r--r--tools/generate-settings-spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/generate-settings-spec.c b/tools/generate-settings-spec.c
index 5281dcbf3e..76d97cf383 100644
--- a/tools/generate-settings-spec.c
+++ b/tools/generate-settings-spec.c
@@ -138,7 +138,7 @@ write_one_setting (FILE *f, gboolean book, SettingNewFunc func)
const char *key_name, *value_type, *value_desc;
char *default_value;
TypeNameElement *name_iter;
- GValue value = { 0, };
+ GValue value = G_VALUE_INIT;
char *flags_str = NULL;
value_type = g_type_name (G_PARAM_SPEC_VALUE_TYPE (*iter));