diff options
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c index 6ac0dab..0c55e0d 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -666,8 +666,8 @@ void next_win(void) { /* get the previous client from the given * if no such client, return NULL */ Client* prevclient(Client *c) { - if (!c || !head->next) return NULL; - Client *p; for (p = head; p->next && p->next != c; p = p->next); + Client *p = NULL; + if (c && head->next) for (p = head; p->next && p->next != c; p = p->next); return p; } |
