diff options
author | James Buren <ryuo@ryuo.xyz> | 2019-03-01 19:42:22 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2019-03-01 19:42:22 +0100 |
commit | decb4e383c32efc1a17574113f98646e5ada84e1 (patch) | |
tree | 170f966cbe1fd5387b9bbecd096e32f276f609e7 | |
parent | 4b6998eade482b3cd10182bedd9faa66250b4cb6 (diff) | |
download | prt-get-decb4e383c32efc1a17574113f98646e5ada84e1.tar.gz prt-get-decb4e383c32efc1a17574113f98646e5ada84e1.tar.xz |
fix wrong use of close() instead of fclose() in commit 2fd99a3c8fc5c75e28af71ac35472f6fe8908d37, fix for FS#1646
-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; } } |