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

From: Jan Kaliszewski <zuo_AT_chopin.edu.pl>
Date: Fri, 22 Aug 2008 03:33:26 +0200

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)

Received on Fri Aug 22 2008 - 01:33:26 UTC

This archive was generated by hypermail 2.2.0 : Fri Aug 22 2008 - 01:36:04 UTC