diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2005-01-02 03:58:21 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2005-01-02 03:58:21 +0000 |
commit | 83346830688525a287489cc791299cbc945d4fc4 (patch) | |
tree | 2d8fd94d497449f2ffe0b8f1a1ad507b03bca753 /content/fetchcache.c | |
parent | 143d756fcf681c15b82f117f95a1c527389b0177 (diff) | |
download | netsurf-83346830688525a287489cc791299cbc945d4fc4.tar.gz netsurf-83346830688525a287489cc791299cbc945d4fc4.tar.bz2 |
[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
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r-- | content/fetchcache.c | 10 |
1 files changed, 7 insertions, 3 deletions
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; |