fix crash
This commit is contained in:
@@ -903,8 +903,7 @@ client_apply_rule(struct client *c)
|
||||
if(r->tag != -1)
|
||||
c->tag = tag_gb_id(c->screen, r->tag);
|
||||
|
||||
if (r->theme)
|
||||
c->theme = r->theme;
|
||||
c->theme = r->theme;
|
||||
|
||||
/* free = false for originally free client */
|
||||
if(r->flags & RULE_FREE)
|
||||
@@ -942,8 +941,7 @@ client_apply_rule(struct client *c)
|
||||
if(r->tag != -1)
|
||||
c->tag = tag_gb_id(c->screen, r->tag);
|
||||
|
||||
if (r->theme)
|
||||
c->theme = r->theme;
|
||||
c->theme = r->theme;
|
||||
|
||||
/* free = false for originally free client */
|
||||
if(r->flags & RULE_FREE)
|
||||
|
||||
@@ -285,7 +285,7 @@ config_rule(void)
|
||||
else
|
||||
r->theme = W->ctheme;
|
||||
|
||||
if (!strcmp(r->name, "default"))
|
||||
if (r->name && !strcmp(r->name, "default"))
|
||||
{
|
||||
W->crule = r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user