summary refs log tree commit diff
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan <okan>2009-06-20 00:55:41 +0000
committerokan <okan>2009-06-20 00:55:41 +0000
commitbcc0f73bb68bab7bff0e0c969b81fe7547caa58a (patch)
tree9375d5da09799b5501da624a20855a96a23f92b0 /kbfunc.c
parent58d12134b1679a9172a7131abffc27769780b9c5 (diff)
downloadcwm-bcc0f73bb68bab7bff0e0c969b81fe7547caa58a.tar.gz
cwm-bcc0f73bb68bab7bff0e0c969b81fe7547caa58a.tar.xz
cwm-bcc0f73bb68bab7bff0e0c969b81fe7547caa58a.zip
compact a bit by condensing a few if-else's; from Thomas Pfaff
"go on then" oga@
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 1f3b843..125e1f5 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -412,10 +412,7 @@ kbfunc_client_label(struct client_ctx *cc, union arg *arg)
 
 	TAILQ_INIT(&menuq);
 	
-	if (cc->label != NULL)
-		current = cc->label;
-	else
-		current = NULL;
+	current = cc->label;
 
 	if ((mi = menu_filter(&menuq, "label", current, 1,
 	    search_match_text, NULL)) != NULL) {