mirror of https://github.com/0intro/wmii
Fix segfault on grow command with no args
This commit is contained in:
parent
bc0d15a261
commit
972e6adf86
|
@ -359,7 +359,7 @@ getframe(View *v, int scrn, IxpMsg *m) {
|
||||||
ulong l;
|
ulong l;
|
||||||
|
|
||||||
s = msg_getword(m);
|
s = msg_getword(m);
|
||||||
if(!strcmp(s, "client")) {
|
if(!s || !strcmp(s, "client")) {
|
||||||
c = strclient(v, msg_getword(m));
|
c = strclient(v, msg_getword(m));
|
||||||
if(c == nil)
|
if(c == nil)
|
||||||
return nil;
|
return nil;
|
||||||
|
|
Loading…
Reference in New Issue