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

From: Premysl Hruby <dfenze_AT_gmail.com>
Date: Fri, 22 Aug 2008 15:27:15 +0200

On (22/08/08 03:33), Jan Kaliszewski wrote:
> To: dwm_AT_suckless.org
> From: Jan Kaliszewski <zuo_AT_chopin.edu.pl>
> Subject: [dwm] Bug: trying to toggletag when there is no focused window => dwm
> crashes
> Reply-To: dwm mail list <dwm_AT_suckless.org>
> List-Id: dwm mail list <dwm.suckless.org>
> 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/
Received on Fri Aug 22 2008 - 13:27:15 UTC

This archive was generated by hypermail 2.2.0 : Fri Aug 22 2008 - 13:36:03 UTC