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:
Ihor Antonov 2019-07-29 13:57:16 -04:00 committed by Justin M. Keyes
parent 696334181f
commit 454902d663

View File

@ -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';