From: Erwan Tulou Date: Tue, 20 Jul 2010 14:56:32 +0000 (+0200) Subject: make_URI(Win32): rather default to "file" than format a wrong uri X-Git-Tag: 1.2.0-pre1~5735 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9d14d571d4b68f19e7adc786813339d8cb9e1162;p=vlc make_URI(Win32): rather default to "file" than format a wrong uri --- diff --git a/src/text/strings.c b/src/text/strings.c index cd110e7332..25886ff045 100644 --- a/src/text/strings.c +++ b/src/text/strings.c @@ -1054,7 +1054,7 @@ char *make_URI (const char *path, const char *scheme) #ifdef WIN32 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; path += 2; }