aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2009-06-20 00:55:41 +0000
committerokan2009-06-20 00:55:41 +0000
commitc54416ae163702858ce97808753af16c8c9b5921 (patch)
treee9d3394584e6cb28ee5e25f556f7ce000bb9cdc6 /kbfunc.c
parentc6af5e9b967797d315037b26aa05fec5b3e6ef44 (diff)
downloadcwm-c54416ae163702858ce97808753af16c8c9b5921.tar.gz
compact a bit by condensing a few if-else's; from Thomas Pfaff
"go on then" oga@
Diffstat (limited to '')
-rw-r--r--kbfunc.c7
1 files changed, 2 insertions, 5 deletions
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 <paths.h>
@@ -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) {