option: Fix PVS/V560: EXPAND_BOOL_SETTINGS already caused early return

This commit is contained in:
ZyX
2018-04-16 11:34:26 +03:00
parent 61b6eb926d
commit 6a5b9de546

View File

@@ -6075,7 +6075,7 @@ set_context_in_set_cmd (
xp->xp_context = EXPAND_UNSUCCESSFUL;
return;
}
if (xp->xp_context != EXPAND_BOOL_SETTINGS && p[1] == NUL) {
if (p[1] == NUL) {
xp->xp_context = EXPAND_OLD_SETTING;
if (is_term_option)
expand_option_idx = -1;