summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-10-11 08:06:03 +0000
committernicm <nicm@openbsd.org>2013-10-11 08:06:03 +0000
commitbcd0536b80c3add7843c25f5e2bc0cd8406228cc (patch)
treeb401d4841f6bd1f46406338870e8daeea7ce033a
parentAnd get it right this time... don't leak if it is an empty string either. (diff)
downloadwireguard-openbsd-bcd0536b80c3add7843c25f5e2bc0cd8406228cc.tar.xz
wireguard-openbsd-bcd0536b80c3add7843c25f5e2bc0cd8406228cc.zip
Remove stray return, from Chris Johnsen.
-rw-r--r--usr.bin/tmux/cmd-unbind-key.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-unbind-key.c b/usr.bin/tmux/cmd-unbind-key.c
index 61d3389db34..a54ef6f2957 100644
--- a/usr.bin/tmux/cmd-unbind-key.c
+++ b/usr.bin/tmux/cmd-unbind-key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-unbind-key.c,v 1.17 2013/10/10 12:00:24 nicm Exp $ */
+/* $OpenBSD: cmd-unbind-key.c,v 1.18 2013/10/11 08:06:03 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -50,7 +50,6 @@ cmd_unbind_key_exec(struct cmd *self, struct cmd_q *cmdq)
cmdq_error(cmdq, "missing key");
return (CMD_RETURN_ERROR);
}
- return (CMD_RETURN_ERROR);
key = key_string_lookup_string(args->argv[0]);
if (key == KEYC_NONE) {
cmdq_error(cmdq, "unknown key: %s", args->argv[0]);