aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-04-20 19:40:39 +0000
committercorvid <corvid@lavabit.com>2010-04-20 19:40:39 +0000
commitb6336662350d0cc14bfc1172126b04cf8190df47 (patch)
tree8059ed6466f931c28e59251b7edd4df64dca7303 /src
parent51b8093583877e75ad1364cc1d1cca577d1af66e (diff)
no-host is "", not NULL
Diffstat (limited to 'src')
-rw-r--r--src/capi.c6
1 files changed, 1 insertions, 5 deletions
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