From 2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a Mon Sep 17 00:00:00 2001 From: "Anselm R.Garbe" Date: Mon, 14 Aug 2006 10:49:22 +0200 Subject: fixed a core dump --- client.c | 1 - tag.c | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index ecfd8f0..8d5ea30 100644 --- a/client.c +++ b/client.c @@ -52,7 +52,6 @@ focus(Client *c) if (!issel) return; Client *old = sel; - XEvent ev; sel = c; if(old && old != c) diff --git a/tag.c b/tag.c index 01979d5..c4d3b34 100644 --- a/tag.c +++ b/tag.c @@ -211,8 +211,10 @@ restack() else m++; } - - n = 2 * (f + m); + if(!(n = 2 * (f + m))) { + drawstatus(); + return; + } if(nwins < n) { nwins = n; wins = erealloc(wins, nwins * sizeof(Window)); -- cgit v1.2.3-70-g09d2