Do not fail if unset an option that is already unset, reported by Thomas

Sattler.
This commit is contained in:
nicm 2017-09-07 13:18:44 +00:00
parent 466066c3a1
commit 89e057dc4a

View File

@ -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 ||