1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

rss: check for allocation failure of struct rss_renderer

This commit is contained in:
Jonas Fonseca 2007-08-29 12:05:10 +02:00
parent 6ebcce0655
commit 8e954e9f61

View File

@ -191,6 +191,8 @@ dom_rss_push_document(struct dom_stack *stack, struct dom_node *root, void *xxx)
} }
rss = renderer->data = mem_calloc(1, sizeof(*rss)); rss = renderer->data = mem_calloc(1, sizeof(*rss));
if (rss)
return DOM_CODE_ALLOC_ERR;
/* Initialize styles. */ /* Initialize styles. */