[libsoup/soup-uri-removal: 1/2] uri: Fix scheme comparison in soup_uri_host_equal
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/soup-uri-removal: 1/2] uri: Fix scheme comparison in soup_uri_host_equal
- Date: Tue, 13 Oct 2020 13:21:06 +0000 (UTC)
commit 41a3e9194250cb8a4116aeae9892ca96a703d4a6
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Tue Oct 13 15:13:02 2020 +0200
uri: Fix scheme comparison in soup_uri_host_equal
Fixes ntlm-test.
libsoup/soup-uri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c
index 447a3a0d..de328d3b 100644
--- a/libsoup/soup-uri.c
+++ b/libsoup/soup-uri.c
@@ -439,7 +439,7 @@ soup_uri_host_equal (gconstpointer v1, gconstpointer v2)
if (one == two)
return TRUE;
- if (!g_ascii_strcasecmp (g_uri_get_scheme (one), g_uri_get_scheme (two)))
+ if (g_ascii_strcasecmp (g_uri_get_scheme (one), g_uri_get_scheme (two)) != 0)
return FALSE;
one_port = g_uri_get_port (one);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]