summaryrefslogtreecommitdiffstats
path: root/telephony-binding/gdbus
diff options
context:
space:
mode:
authorChanghyeok Bae <changhyeok.bae@gmail.com>2017-12-22 16:03:56 +0000
committerChanghyeok Bae <changhyeok.bae@gmail.com>2017-12-22 16:03:56 +0000
commit839685b2c5c3089c7b41e3e0d556c0fe963a9605 (patch)
tree6602d14e776beb887b31fccf8191d4fd1bb6a893 /telephony-binding/gdbus
parentdb9ca05f7ede00029680a507e031189f0e5caf46 (diff)
Fix build error in gcc 7.2
[Error] ../../git/telephony-binding/gdbus/ofono_voicecallmanager.c:44:7: error: 'state' may be used uninitialized in this function [-Werror=maybe-uninitialized] Bug-AGL: SPEC-1181 Signed-off-by: Changhyeok Bae <changhyeok.bae@gmail.com>
Diffstat (limited to 'telephony-binding/gdbus')
-rw-r--r--telephony-binding/gdbus/ofono_voicecallmanager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony-binding/gdbus/ofono_voicecallmanager.c b/telephony-binding/gdbus/ofono_voicecallmanager.c
index 76cf409..2356366 100644
--- a/telephony-binding/gdbus/ofono_voicecallmanager.c
+++ b/telephony-binding/gdbus/ofono_voicecallmanager.c
@@ -30,7 +30,7 @@ static void call_added(OrgOfonoVoiceCallManager *manager,
GVariantIter *iter;
gchar *key;
GVariant *value;
- const gchar *state, *cl = NULL;
+ const gchar *state = NULL, *cl = NULL;
g_variant_get(properties, "a{sv}", &iter);
while (g_variant_iter_loop(iter, "{sv}", &key, &value)) {