Commit 3ab2f937 authored by Rafaël Carré's avatar Rafaël Carré

FromLocaleDup(): accept NULL input (and return NULL)

parent 6ab3cbf7
......@@ -90,6 +90,9 @@ char *FromLocale (const char *locale)
*/
char *FromLocaleDup (const char *locale)
{
if (!locale)
return NULL;
#ifdef ASSUME_UTF8
return strdup (locale);
#else
......
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