Commit 9f1a2dcc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

utf8_vasprintf(): avoid useless strdup if UTF-8 is assumed

parent d303d6a8
......@@ -212,8 +212,12 @@ static int utf8_vasprintf( char **str, const char *fmt, va_list ap )
if( res == -1 )
return -1;
#ifdef ASSUME_UTF8
*str = utf8;
#else
*str = ToLocaleDup( utf8 );
free( utf8 );
#endif
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