summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2016-10-24 18:57:13 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2016-10-24 18:57:13 +0000
commitb54114def93ed7a5b1d7439af1345178c2b38be0 (patch)
treeb3dc3cfc5e89c54e28899a9b6d458ed4c7f721c8 /app/cwm
parentfbaa942b818234f3bacdbbe8e633d790ee9b9386 (diff)
Remove duplicate check that strsubmatch() already does; while here, fix a
comment.
Diffstat (limited to 'app/cwm')
-rw-r--r--app/cwm/search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/search.c b/app/cwm/search.c
index f7238015d..616a9be1c 100644
--- a/app/cwm/search.c
+++ b/app/cwm/search.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.
*
- * $OpenBSD: search.c,v 1.56 2016/10/24 17:39:38 okan Exp $
+ * $OpenBSD: search.c,v 1.57 2016/10/24 18:57:12 okan Exp $
*/
#include <sys/types.h>
@@ -57,7 +57,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
struct client_ctx *cc = (struct client_ctx *)mi->ctx;
/* Match on label. */
- if ((cc->label) && strsubmatch(search, cc->label, 0))
+ if (strsubmatch(search, cc->label, 0))
tier = 0;
/* Match on window name history, from present to past. */
@@ -69,7 +69,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
}
}
- /* Match on window class name. */
+ /* Match on window resource class. */
if ((tier < 0) && strsubmatch(search, cc->ch.res_class, 0))
tier = 3;