summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-12-26 16:21:46 +0000
committerJames Bursa <james@netsurf-browser.org>2003-12-26 16:21:46 +0000
commit20a6f739dc48afdf902eb92e0c8422ebcf0d47a4 (patch)
tree7d0f603c19989963dcf0467fe75cd91013a31d9e /desktop
parent894703b53b27a25d58d9a6fa77e99d967e9588f6 (diff)
downloadnetsurf-20a6f739dc48afdf902eb92e0c8422ebcf0d47a4.tar.gz
netsurf-20a6f739dc48afdf902eb92e0c8422ebcf0d47a4.tar.bz2
[project @ 2003-12-26 16:21:46 by bursa]
Rewrite get_host_from_url() to use uri library. svn path=/import/netsurf/; revision=444
Diffstat (limited to 'desktop')
-rw-r--r--desktop/loginlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/loginlist.c b/desktop/loginlist.c
index 147b6bed7..090f877f5 100644
--- a/desktop/loginlist.c
+++ b/desktop/loginlist.c
@@ -30,6 +30,8 @@ void login_list_add(char *host, char* logindets) {
char *temp = get_host_from_url(host);
char *i;
+ assert(temp);
+
/* Go back to the path base ie strip the document name
* eg. http://www.blah.com/blah/test.htm becomes
* http://www.blah.com/blah/
@@ -77,6 +79,7 @@ struct login *login_list_get(char *host) {
return NULL;
temphost = get_host_from_url(host);
+ assert(temphost);
temp = xstrdup(host);
/* Smallest thing to check for is the scheme + host name + trailing '/'
@@ -84,6 +87,7 @@ struct login *login_list_get(char *host) {
*/
if (strlen(temphost) > strlen(temp)) {
temp = get_host_from_url(host);
+ assert(temp);
}
/* Work backwards through the path, directory at at time.