dwm-meillo

diff tag.c @ 272:be40a56df248

fixed a core dump
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 10:49:22 +0200
parents dacd3f3c5823
children 9a0a351dd910
line diff
     1.1 --- a/tag.c	Mon Aug 14 10:24:38 2006 +0200
     1.2 +++ b/tag.c	Mon Aug 14 10:49:22 2006 +0200
     1.3 @@ -211,8 +211,10 @@
     1.4  			else
     1.5  				m++;
     1.6  		}
     1.7 -
     1.8 -	n = 2 * (f + m);
     1.9 +	if(!(n = 2 * (f + m))) {
    1.10 +		drawstatus();
    1.11 +		return;
    1.12 +	}
    1.13  	if(nwins < n) {
    1.14  		nwins = n;
    1.15  		wins = erealloc(wins, nwins * sizeof(Window));