diff options
| author | Daniel Steinberg <dstein64@users.noreply.github.com> | 2021-07-11 00:32:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-10 21:32:37 -0700 |
| commit | 79fe9dedcfede1d2038b47a21f21a995051deaa2 (patch) | |
| tree | 417411e4f24737a718852a8c022b857be16f3d21 /test/functional/legacy/visual_mode_spec.lua | |
| parent | 936f3a4ddc543dc047ac0f7867629a37eaaf2362 (diff) | |
| download | rneovim-79fe9dedcfede1d2038b47a21f21a995051deaa2.tar.gz rneovim-79fe9dedcfede1d2038b47a21f21a995051deaa2.tar.bz2 rneovim-79fe9dedcfede1d2038b47a21f21a995051deaa2.zip | |
window.c: address Coverity failure #14996
Check that `wip2` does not point to the same address as `wip`, to address the
Coverity test failure from PR #14884.
Based on the `if` clauses, `free_wininfo(wip2, ...)` is only called when
`wip2->wi_win == NULL` and `wip->wi_win == wp`. I think `wip2` would only point
to the same address as `wip` in scenarios where `wp` were `NULL`, which can be
assumed otherwise based on the earlier code.
Diffstat (limited to 'test/functional/legacy/visual_mode_spec.lua')
0 files changed, 0 insertions, 0 deletions
