Skip to content
Snippets Groups Projects
Commit 3ab2f937 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

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

parent 6ab3cbf7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment