1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05: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));
if (rss)
return DOM_CODE_ALLOC_ERR;
/* Initialize styles. */