diff options
Diffstat (limited to 'content/fetchers')
-rw-r--r-- | content/fetchers/fetch_data.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/fetchers/fetch_data.c b/content/fetchers/fetch_data.c index eefcb312d..6d4befada 100644 --- a/content/fetchers/fetch_data.c +++ b/content/fetchers/fetch_data.c @@ -75,6 +75,9 @@ static void *fetch_data_setup(struct fetch *parent_fetch, const char *url, { struct fetch_data_context *ctx = calloc(1, sizeof(*ctx)); + if (ctx == NULL) + return NULL; + RING_INSERT(ring, ctx); ctx->parent_fetch = parent_fetch; |