summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/fetch/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index d05b483..a63f04e 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -246,9 +246,9 @@ fetch(char *URL, char *path)
if (!*url->scheme) {
if (!*url->host)
strcpy(url->scheme, SCHEME_FILE);
- else if (strncasecmp(url->host, "ftp.", 4))
+ else if (strncasecmp(url->host, "ftp.", 4) == 0)
strcpy(url->scheme, SCHEME_FTP);
- else if (strncasecmp(url->host, "www.", 4))
+ else if (strncasecmp(url->host, "www.", 4) == 0)
strcpy(url->scheme, SCHEME_HTTP);
}
OpenPOWER on IntegriCloud