From b0ca8175bb5bffaad44b3226ceebfd2d09894128 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 9 Aug 2012 17:44:59 +0100 Subject: Dodge a clang warning. --- utils/nsurl.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'utils/nsurl.c') diff --git a/utils/nsurl.c b/utils/nsurl.c index 2e73866b2..1107d67f9 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -227,11 +227,13 @@ enum url_sections { #define nsurl__component_copy(c) (c == NULL) ? NULL : lwc_string_ref(c) -#define nsurl__component_compare(c1, c2, match) \ - if (c1 && c2) \ - lwc_string_isequal(c1, c2, match); \ - else if (c1 || c2) \ - *match = false; +#define nsurl__component_compare(c1, c2, match) \ + if (c1 && c2 && lwc_error_ok == \ + lwc_string_isequal(c1, c2, match)) { \ + /* do nothing */ \ + } else if (c1 || c2) { \ + *match = false; \ + } /** -- cgit v1.2.3