comparison src/window.c @ 11232:a14090a30a3f v8.0.0502

patch 8.0.0502: Coverity complains about possible NULL pointer commit https://github.com/vim/vim/commit/a37ffaa5e0a47e2db27bc0cc23f49e7094f47f3b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 21 21:58:00 2017 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Mar 2017 22:00:04 +0100
parents e6140f3d2be7
children d06a3db9b651
comparison
equal deleted inserted replaced
11231:72f9a73ceca8 11232:a14090a30a3f
3804 else 3804 else
3805 { 3805 {
3806 for (ptp = first_tabpage; ptp != NULL && ptp->tp_next != tab; 3806 for (ptp = first_tabpage; ptp != NULL && ptp->tp_next != tab;
3807 ptp = ptp->tp_next) 3807 ptp = ptp->tp_next)
3808 ; 3808 ;
3809 assert(ptp != NULL);
3809 ptp->tp_next = tab->tp_next; 3810 ptp->tp_next = tab->tp_next;
3810 } 3811 }
3811 3812
3812 goto_tabpage_tp(ptp, FALSE, FALSE); 3813 goto_tabpage_tp(ptp, FALSE, FALSE);
3813 free_tabpage(tab); 3814 free_tabpage(tab);