aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/md5/md5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/digest/md5/md5.cpp')
-rw-r--r--library/cpp/digest/md5/md5.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/digest/md5/md5.cpp b/library/cpp/digest/md5/md5.cpp
index 198afaabd9..24a5b69eef 100644
--- a/library/cpp/digest/md5/md5.cpp
+++ b/library/cpp/digest/md5/md5.cpp
@@ -192,15 +192,15 @@ char* MD5::End(char* buf) {
char* MD5::End_b64(char* buf) {
ui8 digest[16];
if (!buf)
- buf = (char*)malloc(25);
+ buf = (char*)malloc(25);
if (!buf)
return nullptr;
- Final(digest);
+ Final(digest);
Base64Encode(buf, digest, 16);
buf[24] = '\0';
- return buf;
-}
-
+ return buf;
+}
+
ui64 MD5::EndHalfMix() {
ui8 digest[16];
Final(digest);