mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
coverity/155501: fix bug where P_NO_DEF_EXP was ignored
This commit is contained in:
@@ -1490,7 +1490,7 @@ do_set (
|
|||||||
new_value_alloced = true;
|
new_value_alloced = true;
|
||||||
if (newval == NULL) {
|
if (newval == NULL) {
|
||||||
newval = empty_option;
|
newval = empty_option;
|
||||||
} else if (!(options[opt_idx].flags | P_NO_DEF_EXP)) {
|
} else if (!(options[opt_idx].flags & P_NO_DEF_EXP)) {
|
||||||
s = option_expand(opt_idx, newval);
|
s = option_expand(opt_idx, newval);
|
||||||
if (s == NULL) {
|
if (s == NULL) {
|
||||||
s = newval;
|
s = newval;
|
||||||
|
Reference in New Issue
Block a user