fix wrong use of close() instead of fclose() in commit 2fd99a3c8f
, fix for FS#1646
This commit is contained in:
parent
4b6998eade
commit
decb4e383c
@ -256,7 +256,7 @@ Repository::initFromCache( const string& cacheFile )
|
|||||||
if ( fgets( input, length, fp ) ) {
|
if ( fgets( input, length, fp ) ) {
|
||||||
line = stripWhiteSpace( input );
|
line = stripWhiteSpace( input );
|
||||||
if ( line != CACHE_VERSION ) {
|
if ( line != CACHE_VERSION ) {
|
||||||
close( fp );
|
fclose( fp );
|
||||||
return FORMAT_ERR;
|
return FORMAT_ERR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user