From eb41fa70373b4f54fca3eab5a00521be4e48e5fe Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Mon, 31 Dec 2012 00:35:03 +0000 Subject: Fix use of incorrect variable in dom_string(_caseless)_isequal --- src/core/string.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/string.c b/src/core/string.c index 0cadd77..9ba3576 100644 --- a/src/core/string.c +++ b/src/core/string.c @@ -228,12 +228,12 @@ bool dom_string_isequal(const dom_string *s1, const dom_string *s2) return match; } - len = dom_string_byte_length(s1); + len = dom_string_byte_length((dom_string *) is1); if (len != dom_string_byte_length((dom_string *)is2)) return false; - return 0 == memcmp(dom_string_data(s1), dom_string_data((dom_string *)is2), len); + return 0 == memcmp(dom_string_data((dom_string *) is1), dom_string_data((dom_string *)is2), len); } /** @@ -278,12 +278,12 @@ bool dom_string_caseless_isequal(const dom_string *s1, const dom_string *s2) return match; } - len = dom_string_byte_length(s1); + len = dom_string_byte_length((dom_string *) is1); if (len != dom_string_byte_length((dom_string *)is2)) return false; - d1 = (const uint8_t *) dom_string_data(s1); + d1 = (const uint8_t *) dom_string_data((dom_string *) is1); d2 = (const uint8_t *) dom_string_data((dom_string *)is2); while (len > 0) { -- cgit v1.2.3