From 02298299b66cda877bd9e599266971a2924fe3ee Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 17 Mar 2008 08:42:36 +0100 Subject: [PATCH] Check if c is non NULL before toggling titlebar --- titlebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titlebar.c b/titlebar.c index b766da76..6764a89e 100644 --- a/titlebar.c +++ b/titlebar.c @@ -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)