summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-04-29 22:59:04 -0400
committerTingPing <tingping@tingping.se>2014-04-29 22:59:04 -0400
commitfe71af15a715ca914fe6cd8ea174c2c948476a68 (patch)
tree86fd49c2c426ad08df4da4e630c8ec72788c9655
parentb0497573028c9ce6f04de72ef2c57002217dfeef (diff)
Fix warning
-rw-r--r--src/common/cfgfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 65b1f86d..3e14d748 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -600,7 +600,7 @@ convert_with_fallback (const char *str, const char *fallback)
 	/* On non-Windows, g_get_user_name and g_get_real_name return a string in system locale, so convert it to utf-8. */
 	utf = g_locale_to_utf8 (str, -1, NULL, NULL, 0);
 
-	g_free (str);
+	g_free ((char*)str);
 
 	/* The returned string is NULL if conversion from locale to utf-8 failed for any reason. Return the fallback. */
 	if (!utf)