aboutsummaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 10:49:22 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 10:49:22 +0200
commit2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a (patch)
treea4a21bf2ff4747b0b86a979ea765f769705f6968 /tag.c
parent375a251d16de567b6c62cce208f388cd16e0ce0f (diff)
downloaddwm-2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a.tar.gz
fixed a core dump
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c6
1 files changed, 4 insertions, 2 deletions
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));