Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/a8ee1c2d63b79672c39a2c40c4067f05b6afb799
...commit
http://git.netsurf-browser.org/netsurf.git/commit/a8ee1c2d63b79672c39a2c40c4067f05b6afb799
...tree
http://git.netsurf-browser.org/netsurf.git/tree/a8ee1c2d63b79672c39a2c40c4067f05b6afb799
The branch, master has been updated
via a8ee1c2d63b79672c39a2c40c4067f05b6afb799 (commit)
from 04a515a8ca679844b3aab8d28243d1711693528c (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/commit/?id=a8ee1c2d63b79672c39a2c40c4067f05b6afb799
commit a8ee1c2d63b79672c39a2c40c4067f05b6afb799
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
explicitly check for null string before compare
diff --git a/frontends/gtk/login.c b/frontends/gtk/login.c
index 96639fa..c8ec550 100644
--- a/frontends/gtk/login.c
+++ b/frontends/gtk/login.c
@@ -139,7 +139,7 @@ get_login_description(struct nsurl *url,
NSLOG(netsurf, INFO,
"key:%s url:%s realm:%s str:%s", key, url_s, realm, str);
- if (strcmp(key, str) != 0) {
+ if ((str != NULL) && (strcmp(key, str) != 0) {
*out_str = str;
} else {
/* no message so fallback */
-----------------------------------------------------------------------
Summary of changes:
frontends/gtk/login.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontends/gtk/login.c b/frontends/gtk/login.c
index 96639fa..c8ec550 100644
--- a/frontends/gtk/login.c
+++ b/frontends/gtk/login.c
@@ -139,7 +139,7 @@ get_login_description(struct nsurl *url,
NSLOG(netsurf, INFO,
"key:%s url:%s realm:%s str:%s", key, url_s, realm, str);
- if (strcmp(key, str) != 0) {
+ if ((str != NULL) && (strcmp(key, str) != 0) {
*out_str = str;
} else {
/* no message so fallback */
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org