summaryrefslogtreecommitdiff
path: root/src/utils/sha256.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-10 15:48:22 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-10 15:48:22 +0300
commit13670eefeb4b256c20b603a845eb89f5221a32e5 (patch)
tree7a49048dd2693284789a23dd2a97aaa593b0ae5c /src/utils/sha256.cpp
parent99c02724d193dbd6219c4ce036c43795d6562047 (diff)
downloadmanaverse-13670eefeb4b256c20b603a845eb89f5221a32e5.tar.gz
manaverse-13670eefeb4b256c20b603a845eb89f5221a32e5.tar.bz2
manaverse-13670eefeb4b256c20b603a845eb89f5221a32e5.tar.xz
manaverse-13670eefeb4b256c20b603a845eb89f5221a32e5.zip
Change empty strings initializations.
Diffstat (limited to 'src/utils/sha256.cpp')
-rw-r--r--src/utils/sha256.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/sha256.cpp b/src/utils/sha256.cpp
index 5d3e4c1d2..1e7143300 100644
--- a/src/utils/sha256.cpp
+++ b/src/utils/sha256.cpp
@@ -283,7 +283,7 @@ std::string SHA256Hash(const char *src, int len)
SHA256Final(&ctx, bytehash);
// Convert it to hex
const char* hxc = "0123456789abcdef";
- std::string hash = "";
+ std::string hash("");
for (int i = 0; i < SHA256_DIGEST_SIZE; i++)
{
hash += hxc[bytehash[i] / 16];