blob: 969fffeab389a3098d1c75f23eca12278ed184d4 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/objects/screen.c b/objects/screen.c
index 93ce2288f..0da47e362 100644
--- a/objects/screen.c
+++ b/objects/screen.c
@@ -670,7 +670,7 @@ screen_refresh(void)
}
/* Remove screens which are gone */
- for(int i = 0; i < globalconf.screens.len; i++) {
+ for(int i = 0; i < globalconf.screens.len && globalconf.screens.len > 1; i++) {
screen_t *old_screen = globalconf.screens.tab[i];
bool found = false;
foreach(new_screen, new_screens)
|