mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tag: Silence V522: potential null dereference
Call PVS is referring to is using DT_FREE which will make function exit earlier, in #ifdef EXITFREE block.
This commit is contained in:
parent
b2265a0977
commit
c7c4aad387
@ -208,10 +208,9 @@ do_tag (
|
|||||||
clearpos(&saved_fmark.mark); /* shutup gcc 4.0 */
|
clearpos(&saved_fmark.mark); /* shutup gcc 4.0 */
|
||||||
saved_fmark.fnum = 0;
|
saved_fmark.fnum = 0;
|
||||||
|
|
||||||
/*
|
// Don't add a tag to the tagstack if 'tagstack' has been reset.
|
||||||
* Don't add a tag to the tagstack if 'tagstack' has been reset.
|
assert(tag != NULL);
|
||||||
*/
|
if (!p_tgst && *tag != NUL) { // -V522
|
||||||
if (!p_tgst && *tag != NUL) {
|
|
||||||
use_tagstack = false;
|
use_tagstack = false;
|
||||||
new_tag = true;
|
new_tag = true;
|
||||||
if (g_do_tagpreview != 0) {
|
if (g_do_tagpreview != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user