Commit 75665543 authored by John Freed's avatar John Freed Committed by Jean-Baptiste Kempf

text: make_path returns (null) for Win32 if hostname starts with blank

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8ac185e0
......@@ -1223,6 +1223,9 @@ char *make_path (const char *url)
if (!strncasecmp (path, "localhost/", 10))
return memmove (path, path + 9, strlen (path + 9) + 1);
#else
/* cannot start with a space */
if (*path == ' ')
goto out;
for (char *p = strchr (path, '/'); p; p = strchr (p + 1, '/'))
*p = '\\';
......
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