fix: address -Wmaybe-uninitialized warnings (#22436)

This commit is contained in:
Lewis Russell
2023-02-27 22:16:12 +00:00
committed by GitHub
parent b50ee4a8dc
commit 8ecd129f1e
3 changed files with 4 additions and 4 deletions

View File

@@ -1899,8 +1899,8 @@ static void win_rotate(bool upwards, int count)
}
}
win_T *wp1;
win_T *wp2;
win_T *wp1 = NULL;
win_T *wp2 = NULL;
while (count--) {
if (upwards) { // first window becomes last window