diff options
author | James Bursa <james@netsurf-browser.org> | 2003-07-16 17:38:46 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-07-16 17:38:46 +0000 |
commit | c7520629b0d655bde1db9cbe0012f91502265b5d (patch) | |
tree | 017b920e26802859179aa31f8634f931e34dbc5a /content/fetch.c | |
parent | 6724b2c21e6b86ebce682951d427a9327d386fbc (diff) | |
download | netsurf-c7520629b0d655bde1db9cbe0012f91502265b5d.tar.gz netsurf-c7520629b0d655bde1db9cbe0012f91502265b5d.tar.bz2 |
[project @ 2003-07-16 17:38:46 by bursa]
Make fetchcache return 0 on failure to parse URL.
svn path=/import/netsurf/; revision=225
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/fetch.c b/content/fetch.c index 3b057c266..330f68d3b 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -119,7 +119,10 @@ struct fetch * fetch_start(char *url, char *referer, LOG(("fetch %p, url '%s'", fetch, url)); uri = xmlParseURI(url); - assert(uri != 0); + if (uri == 0) { + LOG(("warning: failed to parse url")); + return 0; + } /* construct a new fetch structure */ fetch->start_time = time(0); |