diff options
Diffstat (limited to 'utils/nsurl.c')
-rw-r--r-- | utils/nsurl.c | 12 |
1 files changed, 7 insertions, 5 deletions
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; \ + } /** |