From fe71af15a715ca914fe6cd8ea174c2c948476a68 Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 29 Apr 2014 22:59:04 -0400 Subject: Fix warning --- src/common/cfgfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/cfgfiles.c') 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) -- cgit 1.4.1