summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/options.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-21 17:25:33 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-21 17:25:33 +0000
commit875c2b0b8f7f7acb0557452e782e2da8db5adab7 (patch)
tree1f40398f1fc71878d6173c4b12e273eb99f0e8bb /usr.bin/tmux/options.c
parentcfe83787625d008d51ad0a0b535fed82147c5ac7 (diff)
Stop caring about empty commands, just treat as a null command.
Diffstat (limited to 'usr.bin/tmux/options.c')
-rw-r--r--usr.bin/tmux/options.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c
index c07d69198ed..c429f319eea 100644
--- a/usr.bin/tmux/options.c
+++ b/usr.bin/tmux/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.63 2021/08/11 20:49:55 nicm Exp $ */
+/* $OpenBSD: options.c,v 1.64 2021/08/21 17:25:32 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -443,10 +443,6 @@ options_array_set(struct options_entry *o, u_int idx, const char *value,
if (OPTIONS_IS_COMMAND(o)) {
pr = cmd_parse_from_string(value, NULL);
switch (pr->status) {
- case CMD_PARSE_EMPTY:
- if (cause != NULL)
- *cause = xstrdup("empty command");
- return (-1);
case CMD_PARSE_ERROR:
if (cause != NULL)
*cause = pr->error;