git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8f0359f
)
It's c++
author
svost
<ya.nowa@yandex.ru>
Fri, 6 May 2016 11:27:50 +0000 (14:27 +0300)
committer
svost
<ya.nowa@yandex.ru>
Fri, 6 May 2016 11:27:50 +0000 (14:27 +0300)
src/init.cpp
patch
|
blob
|
history
diff --git
a/src/init.cpp
b/src/init.cpp
index
6689169
..
bec931d
100644
(file)
--- a/
src/init.cpp
+++ b/
src/init.cpp
@@
-845,7
+845,7
@@
bool AppInit2()
for (auto mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi)
{
auto hash = (*mi).first;
- if (strncmp(hash.ToString().c_str(), strMatch.c_str(), strMatch.size()) == 0)
+ if (strMatch.compare(hash.ToString()) == 0)
{
auto pindex = (*mi).second;
CBlock block;