mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
Prevent flatten
from taking a null list
This commit is contained in:
@@ -648,7 +648,7 @@ tv_list_copy_error:
|
|||||||
///
|
///
|
||||||
/// @return OK or FAIL
|
/// @return OK or FAIL
|
||||||
int tv_list_flatten(list_T *list, long maxdepth)
|
int tv_list_flatten(list_T *list, long maxdepth)
|
||||||
FUNC_ATTR_WARN_UNUSED_RESULT
|
FUNC_ATTR_NONNULL_ARG(1) FUNC_ATTR_WARN_UNUSED_RESULT
|
||||||
{
|
{
|
||||||
listitem_T *item;
|
listitem_T *item;
|
||||||
listitem_T *to_free;
|
listitem_T *to_free;
|
||||||
|
Reference in New Issue
Block a user