refactor: fix PVS warnings (#23200)

This commit is contained in:
zeertzjq
2023-04-19 22:49:14 +08:00
committed by GitHub
parent 0ad5237162
commit ea52961c54
3 changed files with 3 additions and 6 deletions

View File

@@ -3257,8 +3257,7 @@ static void showoptions(bool all, int opt_flags)
} else {
varp = get_varp(p);
}
if (varp != NULL
&& (all == 1 || (all == 0 && !optval_default(p, varp)))) {
if (varp != NULL && (all || !optval_default(p, varp))) {
int len;
if (opt_flags & OPT_ONECOLUMN) {
len = Columns;