fix(options): correct condition for calling did_set_option() (#25026)

This commit is contained in:
zeertzjq
2023-09-05 20:03:25 +08:00
committed by GitHub
parent 6abc608445
commit c3e176f6e2
2 changed files with 15 additions and 1 deletions

View File

@@ -3772,7 +3772,7 @@ static const char *set_option(int opt_idx, void *varp, OptVal *v, int opt_flags,
errbuf, errbuflen);
}
if (errmsg != NULL) {
if (errmsg == NULL) {
did_set_option(opt_idx, opt_flags, true, value_checked);
}