aewl

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 diff
     1.1 --- a/client.c	Mon Aug 14 10:24:38 2006 +0200
     1.2 +++ b/client.c	Mon Aug 14 10:49:22 2006 +0200
     1.3 @@ -52,7 +52,6 @@
     1.4  	if (!issel)
     1.5  		return;
     1.6  	Client *old = sel;
     1.7 -	XEvent ev;
     1.8  
     1.9  	sel = c;
    1.10  	if(old && old != c)
     2.1 --- a/tag.c	Mon Aug 14 10:24:38 2006 +0200
     2.2 +++ b/tag.c	Mon Aug 14 10:49:22 2006 +0200
     2.3 @@ -211,8 +211,10 @@
     2.4  			else
     2.5  				m++;
     2.6  		}
     2.7 -
     2.8 -	n = 2 * (f + m);
     2.9 +	if(!(n = 2 * (f + m))) {
    2.10 +		drawstatus();
    2.11 +		return;
    2.12 +	}
    2.13  	if(nwins < n) {
    2.14  		nwins = n;
    2.15  		wins = erealloc(wins, nwins * sizeof(Window));