From: cheoleun moon Date: Tue, 20 Dec 2016 01:31:39 +0000 (-0800) Subject: Revert "Fix compile error which is specific for GCC 6.2" X-Git-Tag: accepted/tizen/common/20161220.190752~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81a52b4ef7d94b07629294f9b1209e61e32bb835;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Revert "Fix compile error which is specific for GCC 6.2" This reverts commit c464c2fbfc7a28dd44a0ae6ff7f1732c7b7d3f01. Change-Id: I0ef1c793851c1d13f37b922d489c1fc898008c55 --- diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 757375e..2fc7802 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.97 +Version: 1.1.96 Release: 2 Group: System/Network License: Apache-2.0 diff --git a/src/wifi-config.c b/src/wifi-config.c index cf243e9..9a910e8 100755 --- a/src/wifi-config.c +++ b/src/wifi-config.c @@ -540,6 +540,7 @@ static gboolean _get_field(const gchar *config_id, const gchar *key, gchar **val static GSList *_get_list(void) { GSList *list = NULL; + struct dirent ent_struct; struct dirent *dp = NULL; DIR *dir; @@ -549,7 +550,7 @@ static GSList *_get_list(void) return NULL; } - while (dp = readdir(dir)) { + while ((readdir_r(dir, &ent_struct, &dp) == 0) && dp) { 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;