From c69134f851043d92c75b1c619663d0107fe3e06a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 7 Oct 2013 09:23:25 +0200 Subject: [PATCH] xbps_repository_is_remote: optimize and check for http:// first. --- lib/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.c b/lib/util.c index 0f41098a..3daa3409 100644 --- a/lib/util.c +++ b/lib/util.c @@ -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;