mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
'no' is the answer to the comment question: cc->name can't be NULL at
this point due to client_setname()'s work; remove this check. ok oga@
This commit is contained in:
parent
d1b84c5415
commit
3eec3b3802
7
conf.c
7
conf.c
@ -269,17 +269,12 @@ conf_client(struct client_ctx *cc)
|
|||||||
char *wname = cc->name;
|
char *wname = cc->name;
|
||||||
int ignore = 0;
|
int ignore = 0;
|
||||||
|
|
||||||
/* Can wname be NULL? */
|
|
||||||
if (wname != NULL) {
|
|
||||||
TAILQ_FOREACH(wm, &Conf.ignoreq, entry) {
|
TAILQ_FOREACH(wm, &Conf.ignoreq, entry) {
|
||||||
if (strncasecmp(wm->title, wname, strlen(wm->title))
|
if (strncasecmp(wm->title, wname, strlen(wm->title)) == 0) {
|
||||||
== 0) {
|
|
||||||
ignore = 1;
|
ignore = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else
|
|
||||||
ignore = 1;
|
|
||||||
|
|
||||||
cc->bwidth = ignore ? 0 : Conf.bwidth;
|
cc->bwidth = ignore ? 0 : Conf.bwidth;
|
||||||
cc->flags |= ignore ? CLIENT_IGNORE : 0;
|
cc->flags |= ignore ? CLIENT_IGNORE : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user