api/vim: Fix PVS/V547: node was already dereferenced, so can’t be NULL

This commit is contained in:
ZyX
2018-04-22 20:23:50 +03:00
parent a90672fc3d
commit d9c010e45d

View File

@@ -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"),