coverity/155501: fix bug where P_NO_DEF_EXP was ignored

This commit is contained in:
Sander Bosma 2017-03-11 16:26:16 +01:00
parent 4ca8a69067
commit e66c6dd9d5

View File

@ -1490,7 +1490,7 @@ do_set (
new_value_alloced = true;
if (newval == NULL) {
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);
if (s == NULL) {
s = newval;