summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/timeserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeserver.c b/src/timeserver.c
index 1828ccd..fc83f9a 100755
--- a/src/timeserver.c
+++ b/src/timeserver.c
@@ -91,7 +91,7 @@ static void resolv_result(GResolvResultStatus status, char **results,
#if defined TIZEN_EXT
gchar *server = NULL;
- server = (gchar *)user_data;
+ server = g_strdup((gchar *)user_data);
ts_list = g_slist_append(ts_list, server);
DBG("added server %s", server);