diff options
-rw-r--r-- | options/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/path.c b/options/path.c index 304f009167..d38aa060af 100644 --- a/options/path.c +++ b/options/path.c @@ -219,7 +219,7 @@ bool mp_path_isdir(const char *path) bool mp_is_url(bstr path) { int proto = bstr_find0(path, "://"); - if (proto < 0) + if (proto < 1) return false; // The protocol part must be alphanumeric, otherwise it's not an URL. for (int i = 0; i < proto; i++) { |