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:
parent
6ebcce0655
commit
8e954e9f61
@ -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. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user