From: Seonah Moon Date: Mon, 10 Apr 2017 06:12:58 +0000 (+0900) Subject: Fixed bug X-Git-Tag: accepted/tizen/unified/20170411.035228~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e7544508e31c3f98f5a240a58bd0e93d8dc1e22;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Fixed bug Change-Id: I31d7aac50cff6e960339ea7b7ed8a3d3f0f0439d --- diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 5bfe946..1935dce 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.106 +Version: 1.1.107 Release: 2 Group: System/Network License: Apache-2.0 diff --git a/src/wifi-config.c b/src/wifi-config.c index 41297d5..aa2ab05 100755 --- a/src/wifi-config.c +++ b/src/wifi-config.c @@ -552,7 +552,7 @@ static GSList *_get_list(void) return NULL; } - while ((readdir(dir) == 0) && (dp != NULL)) { + while ((dp = readdir(dir)) != NULL) { if (g_strcmp0(dp->d_name, ".") == 0 || g_strcmp0(dp->d_name, "..") == 0 || strncmp(dp->d_name, WIFI_CONFIG_PREFIX, strlen(WIFI_CONFIG_PREFIX)) != 0) { continue;