changeset 1654:d82939c7c4e8

no-host is "", not NULL
author corvid <corvid@lavabit.com>
date Tue, 20 Apr 2010 19:40:39 +0000
parents 7a992ce58091
children 3e01d83fd6d1
files src/capi.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/capi.c	Tue Apr 20 19:31:32 2010 +0000
+++ b/src/capi.c	Tue Apr 20 19:40:39 2010 +0000
@@ -379,11 +379,7 @@
                        *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