From 8f052596b2c79e74c0e47b93595f13a754b3e2ef Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Wed, 11 Jun 2008 19:42:24 +0100 Subject: crash fix --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index ec37588..f5aa010 100644 --- 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]; -- cgit v1.2.3-70-g09d2