소스 검색

crash fix

Anselm R Garbe 17 년 전
부모
커밋
8f052596b2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dwm.c

+ 1 - 1
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];