diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-23 00:23:18 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-23 08:34:25 -0400 |
commit | 84b8612987320f722c33dff3a3f16930407c62ce (patch) | |
tree | 9c930548001b4db351b6a8a423bb4e59a095a1f5 /src/nvim/buffer.c | |
parent | 9fbbec76aaa8d45ba54bb136b750f2ccc440207f (diff) | |
download | rneovim-84b8612987320f722c33dff3a3f16930407c62ce.tar.gz rneovim-84b8612987320f722c33dff3a3f16930407c62ce.tar.bz2 rneovim-84b8612987320f722c33dff3a3f16930407c62ce.zip |
vim-patch:8.0.1512: warning for possibly using NULL pointer
Problem: Warning for possibly using NULL pointer. (Coverity)
Solution: Skip using the pointer if it's NULL.
https://github.com/vim/vim/commit/e4db7aedab65abadcc84c78e7a10ec7bb62f11cf
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 4152c16588..a8d29a3a53 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -4420,7 +4420,7 @@ do_arg_all ( if (i < alist->al_ga.ga_len && (AARGLIST(alist)[i].ae_fnum == buf->b_fnum || path_full_compare(alist_name(&AARGLIST(alist)[i]), - buf->b_ffname, TRUE) & kEqualFiles)) { + buf->b_ffname, true) & kEqualFiles)) { int weight = 1; if (old_curtab == curtab) { |