From 83346830688525a287489cc791299cbc945d4fc4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 2 Jan 2005 03:58:21 +0000 Subject: [project @ 2005-01-02 03:58:20 by jmb] xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c) svn path=/import/netsurf/; revision=1419 --- content/fetchcache.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'content/fetchcache.c') diff --git a/content/fetchcache.c b/content/fetchcache.c index bdc04eb29..81c608b9e 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -84,8 +84,10 @@ struct content * fetchcache(const char *url, if (!post_urlenc && !post_multipart) { if ((c = content_get(url1)) != NULL) { free(url1); - content_add_user(c, callback, p1, p2); - return c; + if (!content_add_user(c, callback, p1, p2)) + return NULL; + else + return c; } } @@ -93,7 +95,9 @@ struct content * fetchcache(const char *url, free(url1); if (!c) return NULL; - content_add_user(c, callback, p1, p2); + if (!content_add_user(c, callback, p1, p2)) { + return NULL; + } if (!post_urlenc && !post_multipart) c->fresh = true; -- cgit v1.2.3