Commit 9d14d571 authored by Erwan Tulou's avatar Erwan Tulou

make_URI(Win32): rather default to "file" than format a wrong uri

parent e575df71
...@@ -1054,7 +1054,7 @@ char *make_URI (const char *path, const char *scheme) ...@@ -1054,7 +1054,7 @@ char *make_URI (const char *path, const char *scheme)
#ifdef WIN32 #ifdef WIN32
if (isalpha (path[0]) && (path[1] == ':')) if (isalpha (path[0]) && (path[1] == ':'))
{ {
if (asprintf (&buf, "%s:///%c:", scheme, path[0]) == -1) if (asprintf (&buf, "%s:///%c:", scheme ? scheme : "file", path[0]) == -1)
buf = NULL; buf = NULL;
path += 2; path += 2;
} }
......
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