crash fix - dwm - dynamic window manager (HTM) git clone https://git.parazyd.org/dwm (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 8f052596b2c79e74c0e47b93595f13a754b3e2ef (DIR) parent 9463d5354bc57d0c0086b7328196d7af60ed706d (HTM) Author: Anselm R Garbe <garbeam@gmail.com> Date: Wed, 11 Jun 2008 19:42:24 +0100 crash fix Diffstat: M dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/dwm.c b/dwm.c @@ -1478,7 +1478,7 @@ togglefloating(const Arg *arg) { void togglelayout(const Arg *arg) { - if(arg->v) + if(arg && arg->v) lt = (Layout *)arg->v; else if(++lt == &layouts[LENGTH(layouts)]) lt = &layouts[0];