Commit 76017b8e 76017b8ee52ccbc2f689280ebe8b1473a6407297 by Sergey Poznyakoff

(amd_url_init): Use mu_scheme_autodetect_p().

1 parent 57461449
...@@ -1329,9 +1329,9 @@ amd_url_init (url_t url, const char *scheme) ...@@ -1329,9 +1329,9 @@ amd_url_init (url_t url, const char *scheme)
1329 1329
1330 if (!name) 1330 if (!name)
1331 return 0; 1331 return 0;
1332 1332
1333 if (strncmp (MU_PATH_SCHEME, name, MU_PATH_SCHEME_LEN) == 0) 1333 if (mu_scheme_autodetect_p (name, &path_ptr))
1334 path_ptr = name; 1334 /* nothing */ ;
1335 /* reject the obvious */ 1335 /* reject the obvious */
1336 else if (strncmp (scheme, name, scheme_len) != 0 1336 else if (strncmp (scheme, name, scheme_len) != 0
1337 || len < scheme_len + 1) 1337 || len < scheme_len + 1)
......