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

Sattler.
pull/1062/merge
nicm 2017-09-07 13:18:44 +00:00
parent 466066c3a1
commit 89e057dc4a
1 changed files with 1 additions and 1 deletions

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