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/fetchcache.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/fetchcache.c')
-rw-r--r-- | content/fetchcache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c index 844111376..99686efe0 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -46,6 +46,12 @@ struct content * fetchcache(const char *url0, char *referer, c->width = width; c->height = height; c->fetch = fetch_start(url, referer, fetchcache_callback, c); + if (c->fetch == 0) { + LOG(("warning: fetch_start failed")); + cache_destroy(c); + content_destroy(c); + return 0; + } return c; } |