tfixed a core dump - dwm - [fork] customized build of dwm, the dynamic window manager
HTML git clone git://src.adamsgaard.dk/dwm
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a
DIR parent 375a251d16de567b6c62cce208f388cd16e0ce0f
HTML Author: Anselm R.Garbe <arg@10ksloc.org>
Date: Mon, 14 Aug 2006 10:49:22 +0200
fixed a core dump
Diffstat:
M client.c | 1 -
M tag.c | 6 ++++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
DIR diff --git a/client.c b/client.c
t@@ -52,7 +52,6 @@ focus(Client *c)
if (!issel)
return;
Client *old = sel;
- XEvent ev;
sel = c;
if(old && old != c)
DIR diff --git a/tag.c b/tag.c
t@@ -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));