Change-Id: I501fafa24e7d7b39bd36ec684c9bf27d1d094130
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Name: net-config
Summary: TIZEN Network Configuration service
-Version: 1.1.74
+Version: 1.1.75
Release: 2
Group: System/Network
License: Apache-2.0
#endif
tmp = g_ascii_strdown(tmp_mac, (gssize)strlen(tmp_mac));
g_free(tmp_mac);
- while (tmp[i]) {
+ while (tmp && tmp[i]) {
if (tmp[i] != ':')
mac[j++] = tmp[i];
i++;
/* Do POSIX file operation to create and remove config files,
* Do not use g_file_set_contents, it breaks inotify operations */
- if (fputs(data, file) < 0) {
+ if (data && fputs(data, file) < 0) {
ERR("Failed to write %s", config_file);
err = -EIO;