mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
coverity/71508: Fix potential null dereference.
Make sure feature pointer is not null before dereferencing.
This commit is contained in:
parent
fde390133e
commit
53231d5e0f
@ -158,8 +158,10 @@ static uint64_t get_provider_for(char *method)
|
||||
|
||||
err:
|
||||
// Ensure we won't try to restart the provider
|
||||
f->bootstrap_command = NULL;
|
||||
f->channel_id = 0;
|
||||
if (f) {
|
||||
f->bootstrap_command = NULL;
|
||||
f->channel_id = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user