Prevent segfault in uicb_checklayout() closes #105

This commit is contained in:
Philippe Pepiot 2011-03-24 14:31:54 +01:00
parent ae47ab6f71
commit 3f21c79f08

View File

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