tcrash fix - dwm - [fork] customized build of dwm, the dynamic window manager | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8f052596b2c79e74c0e47b93595f13a754b3e2ef | |
parent 9463d5354bc57d0c0086b7328196d7af60ed706d | |
Author: Anselm R Garbe <[email protected]> | |
Date: Wed, 11 Jun 2008 19:42:24 +0100 | |
crash fix | |
Diffstat: | |
M dwm.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/dwm.c b/dwm.c | |
t@@ -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]; |