Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/d3b4a286f93d6d341d7b2f60ece83b3e31cf90ff
...commit
http://git.netsurf-browser.org/netsurf.git/commit/d3b4a286f93d6d341d7b2f60ece83b3e31cf90ff
...tree
http://git.netsurf-browser.org/netsurf.git/tree/d3b4a286f93d6d341d7b2f60ece83b3e31cf90ff
The branch, master has been updated
via d3b4a286f93d6d341d7b2f60ece83b3e31cf90ff (commit)
from 411fdc6186434382d0ffaa45a104ecce106c1b47 (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/d3b4a286f93d6d341d7b2f60ece83b3e31cf90ff
commit d3b4a286f93d6d341d7b2f60ece83b3e31cf90ff
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
check return from lwc operation
diff --git a/desktop/browser.c b/desktop/browser.c
index bd819b4..3b2fa4e 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1372,18 +1372,22 @@ nserror browser_window_callback(hlcache_handle *c,
if (lwc_intern_string("icon", SLEN("icon"),
&icon_str) == lwc_error_ok) {
- lwc_string_caseless_isequal(
+ if (lwc_string_caseless_isequal(
event->data.rfc5988_link->rel,
- icon_str, &icon_match);
+ icon_str, &icon_match) != lwc_error_ok)
{
+ icon_match = false;
+ }
lwc_string_unref(icon_str);
}
if (lwc_intern_string("shortcut icon", SLEN("shortcut icon"),
&shortcut_icon_str) == lwc_error_ok) {
- lwc_string_caseless_isequal(
+ if (lwc_string_caseless_isequal(
event->data.rfc5988_link->rel,
shortcut_icon_str,
- &shortcut_icon_match);
+ &shortcut_icon_match) != lwc_error_ok) {
+ shortcut_icon_match = false;
+ }
lwc_string_unref(shortcut_icon_str);
}
-----------------------------------------------------------------------
Summary of changes:
desktop/browser.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/desktop/browser.c b/desktop/browser.c
index bd819b4..3b2fa4e 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1372,18 +1372,22 @@ nserror browser_window_callback(hlcache_handle *c,
if (lwc_intern_string("icon", SLEN("icon"),
&icon_str) == lwc_error_ok) {
- lwc_string_caseless_isequal(
+ if (lwc_string_caseless_isequal(
event->data.rfc5988_link->rel,
- icon_str, &icon_match);
+ icon_str, &icon_match) != lwc_error_ok)
{
+ icon_match = false;
+ }
lwc_string_unref(icon_str);
}
if (lwc_intern_string("shortcut icon", SLEN("shortcut icon"),
&shortcut_icon_str) == lwc_error_ok) {
- lwc_string_caseless_isequal(
+ if (lwc_string_caseless_isequal(
event->data.rfc5988_link->rel,
shortcut_icon_str,
- &shortcut_icon_match);
+ &shortcut_icon_match) != lwc_error_ok) {
+ shortcut_icon_match = false;
+ }
lwc_string_unref(shortcut_icon_str);
}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org