changeset 272:be40a56df248

fixed a core dump
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 10:49:22 +0200
parents e9dc5a9f9480
children ffc73b32084a
files client.c tag.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client.c	Mon Aug 14 10:24:38 2006 +0200
+++ b/client.c	Mon Aug 14 10:49:22 2006 +0200
@@ -52,7 +52,6 @@
 	if (!issel)
 		return;
 	Client *old = sel;
-	XEvent ev;
 
 	sel = c;
 	if(old && old != c)
--- a/tag.c	Mon Aug 14 10:24:38 2006 +0200
+++ b/tag.c	Mon Aug 14 10:49:22 2006 +0200
@@ -211,8 +211,10 @@
 			else
 				m++;
 		}
-
-	n = 2 * (f + m);
+	if(!(n = 2 * (f + m))) {
+		drawstatus();
+		return;
+	}
 	if(nwins < n) {
 		nwins = n;
 		wins = erealloc(wins, nwins * sizeof(Window));