commit - 61804a0ecefda4671f112b64880bd1730628a11f
commit + e04a980e54439290d1ffcaa6a4da95e831e64291
blob - bc11e686062afbe5a8293feb7482b9a11cb420c6
blob + a8666e58c960ce7edf68ddc3087b45020ece0e82
--- tog/tog.c
+++ tog/tog.c
if (err)
break;
if (dead_view) {
+ struct tog_view *v;
TAILQ_REMOVE(&views, dead_view, entry);
- TAILQ_FOREACH(view, &views, entry) {
- if (view->parent == dead_view)
- view->parent = NULL;
+ TAILQ_FOREACH(v, &views, entry) {
+ if (v->parent == dead_view)
+ v->parent = NULL;
}
if (dead_view->parent)
view = dead_view->parent;