commit 972e6adf8677a6583a8e3a1af3cae525ebc2cb3d
parent bc0d15a261cca879d9b945182ccb2251371389ff
Author: Kris Maglione <jg@suckless.org>
Date: Thu, 11 Dec 2008 13:45:05 -0500
Fix segfault on grow command with no args
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/wmii/message.c b/cmd/wmii/message.c
@@ -359,7 +359,7 @@ getframe(View *v, int scrn, IxpMsg *m) {
ulong l;
s = msg_getword(m);
- if(!strcmp(s, "client")) {
+ if(!s || !strcmp(s, "client")) {
c = strclient(v, msg_getword(m));
if(c == nil)
return nil;