aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-11 19:42:24 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-11 19:42:24 +0100
commit8f052596b2c79e74c0e47b93595f13a754b3e2ef (patch)
treef5245732fc8b9ea320412e9277d47e6a40ad21cb /dwm.c
parent9463d5354bc57d0c0086b7328196d7af60ed706d (diff)
downloaddwm-8f052596b2c79e74c0e47b93595f13a754b3e2ef.tar.gz
crash fix
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
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];