Commit 63f9f32f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

url: fix IDN to ASCII of the empty string on Windows

parent aaa0687a
......@@ -862,6 +862,9 @@ static char *vlc_idna_to_ascii (const char *idn)
#elif defined (_WIN32) && (_WIN32_WINNT >= 0x0601)
char *ret = NULL;
if (idn[0] == '\0')
return strdup("");
wchar_t *wide = ToWide (idn);
if (wide == NULL)
return NULL;
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