mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00: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:
		@@ -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) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user