Skip to content

Commit

Permalink
Use g_strdup() instead of strdup()
Browse files Browse the repository at this point in the history
  • Loading branch information
techee committed May 6, 2016
1 parent bd9d26a commit 084c23b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tagmanager/src/tm_workspace.c
Expand Up @@ -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
Expand All @@ -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);
}
Expand Down

0 comments on commit 084c23b

Please sign in to comment.