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 /css | |
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 'css')
-rw-r--r-- | css/css.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -147,6 +147,8 @@ void css_revive(struct content *c, unsigned int width, unsigned int height) c->data.css.import_url[i], c->url, css_atimport_callback, c, i, c->width, c->height); + if (c->data.css.import_content[i] == 0) + continue; if (c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) c->active++; } @@ -296,7 +298,8 @@ void css_atimport(struct content *c, struct node *node) c->data.css.import_content[i] = fetchcache( c->data.css.import_url[i], c->url, css_atimport_callback, c, i, c->width, c->height); - if (c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) + if (c->data.css.import_content[i] && + c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) c->active++; free(url); @@ -343,7 +346,8 @@ void css_atimport_callback(content_msg msg, struct content *css, c->data.css.import_content[i] = fetchcache( c->data.css.import_url[i], c->url, css_atimport_callback, c, i, css->width, css->height); - if (c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) + if (c->data.css.import_content[i] && + c->data.css.import_content[i]->status != CONTENT_STATUS_DONE) c->active++; break; |