From 89e057dc4a8410207d3888e901eb3a3062002190 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 7 Sep 2017 13:18:44 +0000 Subject: [PATCH] Do not fail if unset an option that is already unset, reported by Thomas Sattler. --- cmd-set-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-set-option.c b/cmd-set-option.c index 02504d5c..d1ec6fcf 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -190,7 +190,7 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) /* Change the option. */ if (args_has(args, 'u')) { if (o == NULL) - goto fail; + goto out; if (idx == -1) { if (oo == global_options || oo == global_s_options ||