[geany/geany] 084c23: Use g_strdup() instead of strdup()
Jiří Techet
git-noreply at xxxxx
Fri Jun 10 21:57:34 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Fri, 06 May 2016 19:43:50 UTC
Commit: 084c23bbb163fd95d00e2032698ec3371d366693
https://github.com/geany/geany/commit/084c23bbb163fd95d00e2032698ec3371d366693
Log Message:
-----------
Use g_strdup() instead of strdup()
Modified Paths:
--------------
tagmanager/src/tm_workspace.c
Modified: tagmanager/src/tm_workspace.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -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);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list