Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/b0ca8175bb5bffaad44b3226ceebfd2d09894128
...commit
http://git.netsurf-browser.org/netsurf.git/commit/b0ca8175bb5bffaad44b3226ceebfd2d09894128
...tree
http://git.netsurf-browser.org/netsurf.git/tree/b0ca8175bb5bffaad44b3226ceebfd2d09894128
The branch, master has been updated
via b0ca8175bb5bffaad44b3226ceebfd2d09894128 (commit)
from 78620910e89ce312525ab8f04ba5782e0aeaf440 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commitdiff/b0ca8175bb5bffaad44b3226ceebfd2d09894128
commit b0ca8175bb5bffaad44b3226ceebfd2d09894128
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Dodge a clang warning.
diff --git a/utils/nsurl.c b/utils/nsurl.c
index 2e73866..1107d67 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; \
+ }
/**
-----------------------------------------------------------------------
Summary of changes:
utils/nsurl.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/utils/nsurl.c b/utils/nsurl.c
index 2e73866..1107d67 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; \
+ }
/**
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org