[vlc-commits] commit: make_URI(Win32): rather default to "file" than format a wrong uri ( Erwan Tulou )
git at videolan.org
git at videolan.org
Tue Jul 20 17:07:38 CEST 2010
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Jul 20 16:56:32 2010 +0200| [9d14d571d4b68f19e7adc786813339d8cb9e1162] | committer: Erwan Tulou
make_URI(Win32): rather default to "file" than format a wrong uri
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d14d571d4b68f19e7adc786813339d8cb9e1162
---
src/text/strings.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/text/strings.c b/src/text/strings.c
index cd110e7..25886ff 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;
}
More information about the vlc-commits
mailing list