diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-25 16:20:21 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-25 16:46:49 +0200 |
commit | 73f7153f435a2f04ecfa18cc1b1b0232120169d6 (patch) | |
tree | a8dfe43423e8799de57076cb3652ead1e9df7d95 /src/init.cpp | |
parent | 0f1040ba5213bde402e8ac9c1e4da91ca319c9de (diff) | |
parent | 79d06dc6e07103b31b530f71b7187ea82c34266b (diff) |
Merge pull request #4206
79d06dc Remove redundant c_str (R E Broadley)
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 7664988762..bc4924b48d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -914,7 +914,7 @@ bool AppInit2(boost::thread_group& threadGroup) for (map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi) { uint256 hash = (*mi).first; - if (strncmp(hash.ToString().c_str(), strMatch.c_str(), strMatch.size()) == 0) + if (boost::algorithm::starts_with(hash.ToString(), strMatch)) { CBlockIndex* pindex = (*mi).second; CBlock block; |