From b6336662350d0cc14bfc1172126b04cf8190df47 Mon Sep 17 00:00:00 2001 From: corvid Date: Tue, 20 Apr 2010 19:40:39 +0000 Subject: no-host is "", not NULL --- src/capi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/capi.c') diff --git a/src/capi.c b/src/capi.c index 23916cc0..3fdb57fd 100644 --- a/src/capi.c +++ b/src/capi.c @@ -379,11 +379,7 @@ static bool_t Capi_filters_allow(const DilloUrl *wanted, *want_host = URL_HOST(wanted), *req_suffix, *want_suffix; - if (!req_host && !want_host) { - ret = TRUE; - } else if (!req_host) { - ret = FALSE; - } else if (!want_host) { + if (want_host[0] == '\0') { ret = dStrcasecmp(URL_SCHEME(wanted), "data") ? FALSE : TRUE; } else { /* This will regard "www.dillo.org" and "www.dillo.org." as -- cgit v1.2.3