Coverity fixes

This commit is contained in:
Seth Hillbrand
2023-10-21 17:31:58 +02:00
parent b97d8ddef4
commit 91a151deb1
5 changed files with 24 additions and 20 deletions
+1 -3
View File
@@ -51,9 +51,7 @@ bool GIT_ADD_TO_INDEX_HANDLER::AddToIndex( const wxString& aFilePath )
return false;
}
git_index_find( &at_pos, index, aFilePath.ToUTF8().data() );
if( at_pos >= 0)
if( git_index_find( &at_pos, index, aFilePath.ToUTF8().data() ) == GIT_OK )
{
git_index_free( index );
wxLogError( "%s already in index", aFilePath );