From 084c23bbb163fd95d00e2032698ec3371d366693 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Techet?= Date: Fri, 6 May 2016 21:43:50 +0200 Subject: [PATCH] Use g_strdup() instead of strdup() --- tagmanager/src/tm_workspace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tagmanager/src/tm_workspace.c b/tagmanager/src/tm_workspace.c index ad8aff9d9..fa3e65e2a 100644 --- a/tagmanager/src/tm_workspace.c +++ b/tagmanager/src/tm_workspace.c @@ -516,7 +516,7 @@ static GList *lookup_includes(const gchar **includes, gint includes_count) #endif if (!g_hash_table_lookup(table, globbuf.gl_pathv[idx_glob])) { - gchar *file_name_copy = strdup(globbuf.gl_pathv[idx_glob]); + gchar *file_name_copy = g_strdup(globbuf.gl_pathv[idx_glob]); g_hash_table_insert(table, file_name_copy, file_name_copy); #ifdef TM_DEBUG @@ -536,7 +536,7 @@ static GList *lookup_includes(const gchar **includes, gint includes_count) { if (!g_hash_table_lookup(table, includes[i])) { - gchar* file_name_copy = strdup(includes[i]); + gchar* file_name_copy = g_strdup(includes[i]); g_hash_table_insert(table, file_name_copy, file_name_copy); } -- 2.11.4.GIT