fix crash

This commit is contained in:
Jérémy Anger
2012-04-12 13:39:37 +02:00
parent 80eadd6f5c
commit 4a186874aa
2 changed files with 3 additions and 5 deletions

View File

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

View File

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