Commit dee7e3d3 authored by Thomas Guillem's avatar Thomas Guillem

input: add missing error check

parent 13eb6c56
......@@ -1665,6 +1665,8 @@ int vlc_readdir_helper_additem(struct vlc_readdir_helper *p_rdh,
input_item_CopyOptions(p_item, p_rdh->p_node->p_item);
p_node = input_item_node_AppendItem(p_rdh->p_node, p_item);
if (p_node == NULL)
return VLC_ENOMEM;
/* A slave can also be an item. If there is a match, this item will be
* removed from the parent node. This is not a common case, since most
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment