aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-09-26 20:30:57 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-26 20:31:18 +0200
commit64cfaf891fe539b36f6be37dac6c28a712d70b96 (patch)
tree520c1e99eb70e7fd0ea85305b357d107f021a2a8 /src/init.cpp
parent610a3d3a1bd171b963600c55fab715ca2aa30da3 (diff)
parent6eb67b0ed2b350b772f7edb67aee1bcf09c91b0b (diff)
downloadbitcoin-64cfaf891fe539b36f6be37dac6c28a712d70b96.tar.xz
Merge pull request #4986
6eb67b0 autofile: Disallow by-value copies of CAutoFile (Cory Fields) eee030f autofile: don't copy CAutoFile by value (Cory Fields)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 7299bd0f4a..27594ecbe3 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1058,7 +1058,7 @@ bool AppInit2(boost::thread_group& threadGroup)
}
boost::filesystem::path est_path = GetDataDir() / FEE_ESTIMATES_FILENAME;
- CAutoFile est_filein = CAutoFile(fopen(est_path.string().c_str(), "rb"), SER_DISK, CLIENT_VERSION);
+ CAutoFile est_filein(fopen(est_path.string().c_str(), "rb"), SER_DISK, CLIENT_VERSION);
// Allowed to fail as this file IS missing on first startup.
if (est_filein)
mempool.ReadFeeEstimates(est_filein);