mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	vim-patch:8.2.2462: Coverity warns for not checking for fseek() error
Problem:    Coverity warns for not checking for fseek() error.
Solution:   Give an error message if fseek() fails.
2c363a2e95
			
			
This commit is contained in:
		@@ -5387,7 +5387,8 @@ spell_add_word (
 | 
				
			|||||||
                   len, word, NameBuff);
 | 
					                   len, word, NameBuff);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          if (fseek(fd, fpos_next, SEEK_SET) <= 0) {
 | 
					          if (fseek(fd, fpos_next, SEEK_SET) != 0) {
 | 
				
			||||||
 | 
					            PERROR(_("Seek error in spellfile"));
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user