diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-04-12 00:41:20 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-04-12 00:41:20 +0200 |
commit | b4ca56d96dcf0fe14150115a8826206710d0567a (patch) | |
tree | 496d44e80a8c21062e114bd58a0887b994f6ed49 /src | |
parent | 49ca20aaf37045c1f932e76a284944d6148e98dc (diff) | |
download | rneovim-b4ca56d96dcf0fe14150115a8826206710d0567a.tar.gz rneovim-b4ca56d96dcf0fe14150115a8826206710d0567a.tar.bz2 rneovim-b4ca56d96dcf0fe14150115a8826206710d0567a.zip |
PVS/V595: pointer utilized before checking NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 703a89d31f..d7a16de299 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1718,6 +1718,7 @@ buf_T * buflist_new(char_u *ffname, char_u *sfname, linenr_T lnum, int flags) */ buf = NULL; if ((flags & BLN_CURBUF) && curbuf_reusable()) { + assert(curbuf != NULL); buf = curbuf; /* It's like this buffer is deleted. Watch out for autocommands that * change curbuf! If that happens, allocate a new buffer anyway. */ |