summaryrefslogtreecommitdiff
path: root/app/cwm/conf.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2009-05-30 00:30:28 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2009-05-30 00:30:28 +0000
commitecd6df4865c5314b78444a652684b313413b9f36 (patch)
tree38336bb9bb749c0546c89f608fc998a1e2a1b90e /app/cwm/conf.c
parentc5ae4a2d0fc26a047cd763fff36f7add25a57d94 (diff)
'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 'app/cwm/conf.c')
-rw-r--r--app/cwm/conf.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index 6ef0fc059..c1a70ca8e 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: conf.c,v 1.62 2009/05/17 23:54:17 okan Exp $
+ * $Id: conf.c,v 1.63 2009/05/30 00:30:27 okan Exp $
*/
#include "headers.h"
@@ -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;