clang/"null pointer dereference": win_rotate

This commit is contained in:
Justin M. Keyes 2019-02-14 05:54:42 +01:00
parent b7f518cbfa
commit 3d3a54f455

View File

@ -1300,6 +1300,7 @@ static void win_rotate(int upwards, int count)
if (upwards) { /* first window becomes last window */
/* remove first window/frame from the list */
frp = curwin->w_frame->fr_parent->fr_child;
assert(frp != NULL);
wp1 = frp->fr_win;
win_remove(wp1, NULL);
frame_remove(frp);