Handle omitted realm

svn path=/trunk/netsurf/; revision=2602
This commit is contained in:
John Mark Bell 2006-05-14 23:35:15 +00:00
parent 4a314ef5ac
commit fa5156cfca

View File

@ -98,7 +98,7 @@ void ro_gui_401login_open(struct browser_window *bw, const char *host,
session->uname[0] = '\0';
session->pwd[0] = '\0';
session->host = strdup(host);
session->realm = strdup(realm);
session->realm = strdup(realm ? realm : "Secure Area");
session->bwin = bw;
if ((!session->host) || (!session->realm)) {
free(session->host);