diff options
-rw-r--r-- | src/repository.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.cpp b/src/repository.cpp index 9e122d3..02562a4 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -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; } } |