summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontends/gtk/login.c2
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 */