[vlc-commits] url: fix IDN to ASCII of the empty string on Windows
Rémi Denis-Courmont
git at videolan.org
Sat Nov 5 22:59:11 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 5 23:58:40 2016 +0200| [63f9f32f11307176bbc8b245e72fc5750e55868e] | committer: Rémi Denis-Courmont
url: fix IDN to ASCII of the empty string on Windows
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=63f9f32f11307176bbc8b245e72fc5750e55868e
---
src/text/url.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/text/url.c b/src/text/url.c
index b9e7b41..47d2ba3 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -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;
More information about the vlc-commits
mailing list