Fix segfault on grow command with no args

This commit is contained in:
Kris Maglione 2008-12-11 13:45:05 -05:00
parent bc0d15a261
commit 972e6adf86
1 changed files with 1 additions and 1 deletions

View File

@ -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;