mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
coverity/161682: FP: Dereference after null check (#6630)
This commit is contained in:
parent
cc29827bc2
commit
1483800cdf
@ -442,8 +442,7 @@ static void handle_request(Channel *channel, msgpack_object *request)
|
||||
evdata->request_id = request_id;
|
||||
incref(channel);
|
||||
if (handler.async) {
|
||||
bool is_get_mode = sizeof("nvim_get_mode") - 1 == method->via.bin.size
|
||||
&& !strncmp("nvim_get_mode", method->via.bin.ptr, method->via.bin.size);
|
||||
bool is_get_mode = handler.fn == handle_nvim_get_mode;
|
||||
|
||||
if (is_get_mode && !input_blocking()) {
|
||||
// Defer the event to a special queue used by os/input.c. #6247
|
||||
|
Loading…
Reference in New Issue
Block a user