[hackers] [tabbed] cleanup(): fix for loop bounds || Ivan Vetrov
commit e65146d2918e0072fc09b3dfb06785e170787164
Author: Ivan Vetrov <vetrov.iv5_AT_gmail.com>
AuthorDate: Wed Nov 5 08:28:42 2025 +0300
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Tue Nov 11 20:15:41 2025 +0100
cleanup(): fix for loop bounds
diff --git a/tabbed.c b/tabbed.c
index aa45716..2fb5aa7 100644
--- a/tabbed.c
+++ b/tabbed.c
_AT_@ -214,7 +214,7 @@ cleanup(void)
{
int i;
- for (i = 0; i < nclients; i++) {
+ for (i = nclients - 1; i >= 0; i--) {
focus(i);
killclient(NULL);
XReparentWindow(dpy, clients[i]->win, root, 0, 0);
Received on Tue Nov 11 2025 - 20:15:51 CET
This archive was generated by hypermail 2.3.0
: Tue Nov 11 2025 - 20:24:37 CET