Commit 32edee83 authored by Rafaël Carré's avatar Rafaël Carré

Do not duplicate NULL strings

parent c452d079
......@@ -165,6 +165,8 @@ static char *locale_fast (const char *string, bool from)
static inline char *locale_dup (const char *string, bool from)
{
assert( string );
#if defined (USE_ICONV)
if (find_charset ())
return strdup (string);
......
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