Re: [dwm] Bug: trying to toggletag when there is no focused window => dwm crashes

2008-08-22 Thread Premysl Hruby
On (22/08/08 03:33), Jan Kaliszewski wrote:
> To: dwm@suckless.org
> From: Jan Kaliszewski <[EMAIL PROTECTED]>
> Subject: [dwm] Bug: trying to toggletag when there is no focused window => dwm
>   crashes
> Reply-To: dwm mail list 
> List-Id: dwm mail list 
> User-Agent: Opera Mail/9.51 (Linux)
> 
> Good evening||morning,
>
> I noticed a bug in dwm 5.1 -- the description in the subject. The reason
> is using sel->tags in function toggletag before checking whether sel is
> not NULL.
>
> The solution is obvious ("if (!sel) return;" before "...sel->tags...").
> Patch attached.
>
> Best regards
> *j
>
> -- 
> Jan Kaliszewski (zuo)

Thanks,

aplied only slightly changed.

-- 
Premysl "Anydot" Hruby, http://www.redrum.cz/



[dwm] Bug: trying to toggletag when there is no focused window => dwm crashes

2008-08-21 Thread Jan Kaliszewski

Good evening||morning,

I noticed a bug in dwm 5.1 -- the description in the subject. The reason
is using sel->tags in function toggletag before checking whether sel is
not NULL.

The solution is obvious ("if (!sel) return;" before "...sel->tags...").
Patch attached.

Best regards
*j

--
Jan Kaliszewski (zuo)

dwm-5.1-rm_toggletag_bug.diff
Description: Binary data