aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorR E Broadley <rebroad+github@gmail.com>2014-05-21 18:50:46 +0800
committerR E Broadley <rebroad+github@gmail.com>2014-05-22 00:23:03 +0700
commit79d06dc6e07103b31b530f71b7187ea82c34266b (patch)
tree8a01bf8e5bc367115d4b58a7969b44c35cabe096 /src/init.cpp
parent6fcdad787f1fb381a3a0fe6b1a1e45477426dccb (diff)
downloadbitcoin-79d06dc6e07103b31b530f71b7187ea82c34266b.tar.xz
Remove redundant c_str
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 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;