Commit 0512fd3c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

utf8_vfprintf(): handle ToLocale() failure

parent 1cb8978e
...@@ -189,6 +189,8 @@ int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap ) ...@@ -189,6 +189,8 @@ int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
char *ansi = ToLocaleDup (str); char *ansi = ToLocaleDup (str);
free (str); free (str);
if (ansi == NULL)
return -1;
fputs (ansi, stream); fputs (ansi, stream);
free (ansi); free (ansi);
return res; return res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment