diff options
author | Ihor Antonov <ngortheone@users.noreply.github.com> | 2019-07-29 13:57:16 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-29 19:57:16 +0200 |
commit | 454902d66341e3d106418d416540b74d229f258c (patch) | |
tree | 9ae4c102a48ec056352e1652bdd3677c34c8c0be | |
parent | 696334181fe9ea0128aff5745f64947efc088095 (diff) | |
download | rneovim-454902d66341e3d106418d416540b74d229f258c.tar.gz rneovim-454902d66341e3d106418d416540b74d229f258c.tar.bz2 rneovim-454902d66341e3d106418d416540b74d229f258c.zip |
PVS/V507: suppress false positive #10647
The pointer does not outlive the value in local scope as it gets
reassigned immediately after scope.
-rw-r--r-- | src/nvim/search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index 9cda76d324..85de7f26de 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -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'; |