commit | a37ffaa5e0a47e2db27bc0cc23f49e7094f47f3b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Mar 21 21:58:00 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Mar 21 21:58:00 2017 +0100 |
tree | 44266e6dca65e36d0e2c7e8112bd1d96c882b354 | |
parent | b2964f2570574b4c66f3645d69956fec99f2af3e [diff] [blame] |
patch 8.0.0502: Coverity complains about possible NULL pointer Problem: Coverity complains about possible NULL pointer. Solution: Add an assert(), let's see if this works on all systems.
diff --git a/src/window.c b/src/window.c index eed0ea9..2ef3198 100644 --- a/src/window.c +++ b/src/window.c
@@ -3806,6 +3806,7 @@ for (ptp = first_tabpage; ptp != NULL && ptp->tp_next != tab; ptp = ptp->tp_next) ; + assert(ptp != NULL); ptp->tp_next = tab->tp_next; }