summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Buren <ryuo@ryuo.xyz>2019-03-01 19:42:22 +0100
committerJuergen Daubert <jue@jue.li>2019-03-01 19:42:22 +0100
commitdecb4e383c32efc1a17574113f98646e5ada84e1 (patch)
tree170f966cbe1fd5387b9bbecd096e32f276f609e7
parent4b6998eade482b3cd10182bedd9faa66250b4cb6 (diff)
downloadprt-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.cpp2
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;
}
}

Generated by cgit