mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
clang/"null pointer dereference": win_rotate
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user