From cffeea77a469cd3f3d1ea20eb0af6ab4cb6480ca Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Wed, 2 Aug 2017 10:05:54 +0900 Subject: [PATCH] [WGID-159165] Fixed unreachable code Change-Id: I1ce80c61300e216e0b784fc5937cfb81734618b6 Signed-off-by: cheoleun --- packaging/net-config.spec | 2 +- src/vpnsvc-internal.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 9eef9f5..114c225 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -1,6 +1,6 @@ Name: net-config Summary: TIZEN Network Configuration service -Version: 1.1.101 +Version: 1.1.102 Release: 2 Group: System/Network License: Apache-2.0 diff --git a/src/vpnsvc-internal.c b/src/vpnsvc-internal.c index 60a7138..7d1a10c 100755 --- a/src/vpnsvc-internal.c +++ b/src/vpnsvc-internal.c @@ -157,10 +157,8 @@ static char *connman_default_profile(GDBusConnection *connection) if (message) { g_variant_get(message, "(a(oa{sv}))", &iter); - while (g_variant_iter_loop(iter, "(oa{sv})", &key, &value)) { + if (g_variant_iter_loop(iter, "(oa{sv})", &key, &value)) profile = strdup(key); - break; - } if (value) g_variant_iter_free(value); -- 2.34.1