(amd_url_init): Use mu_scheme_autodetect_p().
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment