Fix warning
This commit is contained in:
parent
b049757302
commit
fe71af15a7
|
@ -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. */
|
/* 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);
|
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. */
|
/* The returned string is NULL if conversion from locale to utf-8 failed for any reason. Return the fallback. */
|
||||||
if (!utf)
|
if (!utf)
|
||||||
|
|
Loading…
Reference in New Issue