diff options
author | okan <okan> | 2009-05-30 00:30:27 +0000 |
---|---|---|
committer | okan <okan> | 2009-05-30 00:30:27 +0000 |
commit | 3eec3b3802971d8bf784aff21b3e4bbcc48f7c13 (patch) | |
tree | cddd07f45f0a4a360b51fb0973975747ec256091 /conf.c | |
parent | d1b84c5415e555b377e869aa67fa57fbdd0ef59f (diff) | |
download | cwm-3eec3b3802971d8bf784aff21b3e4bbcc48f7c13.tar.gz cwm-3eec3b3802971d8bf784aff21b3e4bbcc48f7c13.tar.xz cwm-3eec3b3802971d8bf784aff21b3e4bbcc48f7c13.zip |
'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@
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/conf.c b/conf.c index fb52cc1..9815b36 100644 --- a/conf.c +++ b/conf.c @@ -269,17 +269,12 @@ conf_client(struct client_ctx *cc) char *wname = cc->name; int ignore = 0; - /* Can wname be NULL? */ - if (wname != NULL) { - TAILQ_FOREACH(wm, &Conf.ignoreq, entry) { - if (strncasecmp(wm->title, wname, strlen(wm->title)) - == 0) { - ignore = 1; - break; - } + TAILQ_FOREACH(wm, &Conf.ignoreq, entry) { + if (strncasecmp(wm->title, wname, strlen(wm->title)) == 0) { + ignore = 1; + break; } - } else - ignore = 1; + } cc->bwidth = ignore ? 0 : Conf.bwidth; cc->flags |= ignore ? CLIENT_IGNORE : 0; |