diff options
author | Max Horn | 2006-04-23 17:18:54 +0000 |
---|---|---|
committer | Max Horn | 2006-04-23 17:18:54 +0000 |
commit | d11f5724f96107a07d462be2410d93f55bd1fba2 (patch) | |
tree | 8cf752a2fa30788af30b7064a5d84bbd4e30e8fd /common | |
parent | 15ecef5b39a2356d3111a6b15f36a5f32df69901 (diff) | |
download | scummvm-rg350-d11f5724f96107a07d462be2410d93f55bd1fba2.tar.gz scummvm-rg350-d11f5724f96107a07d462be2410d93f55bd1fba2.tar.bz2 scummvm-rg350-d11f5724f96107a07d462be2410d93f55bd1fba2.zip |
Small tweak to allow turning off MD5 computation for debugging
svn-id: r22109
Diffstat (limited to 'common')
-rw-r--r-- | common/md5.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/md5.cpp b/common/md5.cpp index 78d844a706..41a261bc88 100644 --- a/common/md5.cpp +++ b/common/md5.cpp @@ -247,6 +247,10 @@ bool md5_file(const char *name, uint8 digest[16], uint32 length) { return false; } +#ifdef DISABLE_MD5 + memset(digest, 0, 16); +#else + if (!restricted || sizeof(buf) <= length) readlen = sizeof(buf); else @@ -266,6 +270,7 @@ bool md5_file(const char *name, uint8 digest[16], uint32 length) { } md5_finish(&ctx, digest); +#endif return true; } |