xbps_repository_is_remote: optimize and check for http:// first.

This commit is contained in:
Juan RP 2013-10-07 09:23:25 +02:00
parent 0db47cff9c
commit c69134f851

View File

@ -56,8 +56,8 @@ xbps_repository_is_remote(const char *uri)
{
assert(uri != NULL);
if ((strncmp(uri, "https://", 8) == 0) ||
(strncmp(uri, "http://", 7) == 0) ||
if ((strncmp(uri, "http://", 7) == 0) ||
(strncmp(uri, "https://", 8) == 0) ||
(strncmp(uri, "ftp://", 6) == 0))
return true;