From 839685b2c5c3089c7b41e3e0d556c0fe963a9605 Mon Sep 17 00:00:00 2001 From: Changhyeok Bae Date: Fri, 22 Dec 2017 16:03:56 +0000 Subject: 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 --- telephony-binding/gdbus/ofono_voicecallmanager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit 1.2.3-korg