summaryrefslogtreecommitdiff
path: root/css/css.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-07-16 17:38:46 +0000
committerJames Bursa <james@netsurf-browser.org>2003-07-16 17:38:46 +0000
commitc7520629b0d655bde1db9cbe0012f91502265b5d (patch)
tree017b920e26802859179aa31f8634f931e34dbc5a /css/css.c
parent6724b2c21e6b86ebce682951d427a9327d386fbc (diff)
downloadnetsurf-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/css.c')
-rw-r--r--css/css.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/css/css.c b/css/css.c
index 8a29abb85..c894f6678 100644
--- a/css/css.c
+++ b/css/css.c
@@ -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;