mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
api/vim: Fix PVS/V547: node was already dereferenced, so can’t be NULL
This commit is contained in:
@@ -1198,7 +1198,7 @@ Dictionary nvim_parse_expression(String expr, String flags, Boolean highlight,
|
|||||||
.node_p = &node->next,
|
.node_p = &node->next,
|
||||||
.ret_node_p = cur_item.ret_node_p + 1,
|
.ret_node_p = cur_item.ret_node_p + 1,
|
||||||
}));
|
}));
|
||||||
} else if (node != NULL) {
|
} else {
|
||||||
kv_drop(ast_conv_stack, 1);
|
kv_drop(ast_conv_stack, 1);
|
||||||
ret_node->items[ret_node->size++] = (KeyValuePair) {
|
ret_node->items[ret_node->size++] = (KeyValuePair) {
|
||||||
.key = STATIC_CSTR_TO_STRING("type"),
|
.key = STATIC_CSTR_TO_STRING("type"),
|
||||||
|
Reference in New Issue
Block a user