From c54416ae163702858ce97808753af16c8c9b5921 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 20 Jun 2009 00:55:41 +0000 Subject: compact a bit by condensing a few if-else's; from Thomas Pfaff "go on then" oga@ --- kbfunc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'kbfunc.c') diff --git a/kbfunc.c b/kbfunc.c index a205c83..505828e 100644 --- a/kbfunc.c +++ b/kbfunc.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: kbfunc.c,v 1.39 2009/06/20 00:22:39 okan Exp $ + * $Id: kbfunc.c,v 1.40 2009/06/20 00:55:42 okan Exp $ */ #include @@ -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) { -- cgit v1.2.3-2-gb3c3