fix wrong use of close() instead of fclose() in commit 2fd99a3c8f, fix for FS#1646

This commit is contained in:
James Buren 2019-03-01 19:42:22 +01:00 committed by Juergen Daubert
parent 4b6998eade
commit decb4e383c
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ Repository::initFromCache( const string& cacheFile )
if ( fgets( input, length, fp ) ) {
line = stripWhiteSpace( input );
if ( line != CACHE_VERSION ) {
close( fp );
fclose( fp );
return FORMAT_ERR;
}
}