diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-22 13:06:29 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-22 18:43:01 +0100 |
commit | 830b31683e9958130a64b9dec990f42b58efc0a7 (patch) | |
tree | 941b98a49b62746d66d2a772a13a8bb40013f875 /src | |
parent | 41bffeacff885b4904a1f456c6d56e016ad6f88c (diff) | |
download | rneovim-830b31683e9958130a64b9dec990f42b58efc0a7.tar.gz rneovim-830b31683e9958130a64b9dec990f42b58efc0a7.tar.bz2 rneovim-830b31683e9958130a64b9dec990f42b58efc0a7.zip |
vim-patch:8.0.0502
Problem: Coverity complains about possible NULL pointer.
Solution: Add an assert(), let's see if this works on all systems.
https://github.com/vim/vim/commit/a37ffaa5e0a47e2db27bc0cc23f49e7094f47f3b
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index a34daccb89..db6c0f9048 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -3167,6 +3167,7 @@ void close_tabpage(tabpage_T *tab) ptp = ptp->tp_next) { // do nothing } + assert(ptp != NULL); ptp->tp_next = tab->tp_next; } |