Fixed initialization of read bytes counter in "encode" mode.

This commit is contained in:
LoRd_MuldeR 2020-10-19 00:32:33 +02:00
parent 895b2812a6
commit 61a7d1155e
Signed by: mulder
GPG Key ID: 2B5913365F57E03F

View File

@ -148,7 +148,7 @@ static int encrypt(const char* const passphrase, const CHR* const input_path, co
}
clock_t clk_now, clk_update = clock();
uint64_t crc_actual = CRC_INITIALIZER, bytes_read = sizeof(uint64_t);
uint64_t crc_actual = CRC_INITIALIZER, bytes_read = 0U;
uint8_t buffer[BUFF_SIZE];
FPRINTF(stderr, T("%5.1f%% "), 0.0);