Check if c is non NULL before toggling titlebar

This commit is contained in:
Julien Danjou 2008-03-17 08:42:36 +01:00
parent 0b6d6d738a
commit 02298299b6
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ uicb_client_toggletitlebar(int screen __attribute__ ((unused)),
{
Client *c = globalconf.focus->client;
if(!c->titlebar.sw)
if(!c || !c->titlebar.sw)
return;
if(!c->titlebar.position)