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:
ZyX 2017-05-20 04:35:42 +03:00
parent b2265a0977
commit c7c4aad387

View File

@ -208,10 +208,9 @@ do_tag (
clearpos(&saved_fmark.mark); /* shutup gcc 4.0 */
saved_fmark.fnum = 0;
/*
* Don't add a tag to the tagstack if 'tagstack' has been reset.
*/
if (!p_tgst && *tag != NUL) {
// Don't add a tag to the tagstack if 'tagstack' has been reset.
assert(tag != NULL);
if (!p_tgst && *tag != NUL) { // -V522
use_tagstack = false;
new_tag = true;
if (g_do_tagpreview != 0) {