mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
Merge pull request #1684 from justinmk/coverity74717
[RFC] coverity/74717: FP: NULL Pointer Dereference
This commit is contained in:
commit
cab88790bc
@ -268,6 +268,7 @@ static int shell(const char *cmd,
|
||||
static void dynamic_buffer_ensure(DynamicBuffer *buf, size_t desired)
|
||||
{
|
||||
if (buf->cap >= desired) {
|
||||
assert(buf->data);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user