summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/md5sum.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/md5sum.c b/src/md5sum.c
index cb292aa4c..349bd7738 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -506,7 +506,7 @@ md5_file (filename, resblock, binary)
/* Important: BLOCKSIZE must be a multiple of 64. */
#define BLOCKSIZE 4096
struct md5_ctx ctx;
- uint32 len[2] = {0, 0};
+ uint32 len[2];
char buffer[BLOCKSIZE + 72];
size_t pad, sum;
FILETYPE f;
@@ -529,6 +529,9 @@ md5_file (filename, resblock, binary)
/* Initialize the computation context. */
init (&ctx);
+ len[0] = 0;
+ len[1] = 0;
+
/* Iterate over full file contents. */
while (1)
{