Fixed bug 67/124067/1
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 10 Apr 2017 06:12:58 +0000 (15:12 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 10 Apr 2017 06:12:58 +0000 (15:12 +0900)
Change-Id: I31d7aac50cff6e960339ea7b7ed8a3d3f0f0439d

packaging/net-config.spec
src/wifi-config.c

index 5bfe946..1935dce 100755 (executable)
@@ -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
index 41297d5..aa2ab05 100755 (executable)
@@ -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;