From 7e7544508e31c3f98f5a240a58bd0e93d8dc1e22 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Mon, 10 Apr 2017 15:12:58 +0900 Subject: [PATCH] Fixed bug Change-Id: I31d7aac50cff6e960339ea7b7ed8a3d3f0f0439d --- packaging/net-config.spec | 2 +- src/wifi-config.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4