diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-10-06 15:44:17 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-10-06 15:44:17 +0100 |
commit | a8ee1c2d63b79672c39a2c40c4067f05b6afb799 (patch) | |
tree | 4f23a7dd36f7c0b5fdc1d949b2bc1741429ec013 /frontends | |
parent | 04a515a8ca679844b3aab8d28243d1711693528c (diff) | |
download | netsurf-a8ee1c2d63b79672c39a2c40c4067f05b6afb799.tar.gz netsurf-a8ee1c2d63b79672c39a2c40c4067f05b6afb799.tar.bz2 |
explicitly check for null string before compare
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/gtk/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/gtk/login.c b/frontends/gtk/login.c index 96639faea..c8ec550fd 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 */ |