mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
PVS/V507: suppress false positive #10647
The pointer does not outlive the value in local scope as it gets reassigned immediately after scope.
This commit is contained in:
parent
696334181f
commit
454902d663
@ -1137,7 +1137,7 @@ int do_search(
|
||||
|
||||
// Get the offset, so we know how long it is.
|
||||
if (spats[0].off.line || spats[0].off.end || spats[0].off.off) {
|
||||
p = off_buf;
|
||||
p = off_buf; // -V507
|
||||
*p++ = dirc;
|
||||
if (spats[0].off.end) {
|
||||
*p++ = 'e';
|
||||
|
Loading…
Reference in New Issue
Block a user