mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
Merge pull request #1064 from mraghavan/coverity-22-07
coverity/71508: Fix potential null dereference.
This commit is contained in:
@@ -158,8 +158,10 @@ static uint64_t get_provider_for(char *method)
|
|||||||
|
|
||||||
err:
|
err:
|
||||||
// Ensure we won't try to restart the provider
|
// Ensure we won't try to restart the provider
|
||||||
|
if (f) {
|
||||||
f->bootstrap_command = NULL;
|
f->bootstrap_command = NULL;
|
||||||
f->channel_id = 0;
|
f->channel_id = 0;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user