1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-22 15:48:52 -05:00

Fix warning

This commit is contained in:
TingPing 2014-04-29 22:59:04 -04:00
parent b049757302
commit fe71af15a7

View 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)