Prevent segfault in uicb_checklayout() closes #105
This commit is contained in:
parent
ae47ab6f71
commit
3f21c79f08
@ -889,8 +889,9 @@ Bool
|
||||
uicb_checklayout(uicb_t cmd)
|
||||
{
|
||||
screen_get_sel();
|
||||
char *type = tags[selscreen][seltag[selscreen]].layout.type;
|
||||
|
||||
if(!strcmp(cmd, tags[selscreen][seltag[selscreen]].layout.type))
|
||||
if(type && !strcmp(cmd, type))
|
||||
return True;
|
||||
|
||||
return False;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user