]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Fix warning
authorTingPing <redacted>
Wed, 30 Apr 2014 02:59:04 +0000 (22:59 -0400)
committerTingPing <redacted>
Wed, 30 Apr 2014 02:59:04 +0000 (22:59 -0400)
src/common/cfgfiles.c

index 65b1f86d2f436a96ef2345b54fd3f1b70aaad289..3e14d74821562c1a45c39359ae37f654ad626c91 100644 (file)
@@ -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)