Skip to content
Snippets Groups Projects
Unverified Commit ea7aca66 authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #2035 from sigalpes/develop

Fix the 'for' loop initial declaration used outside C99 mode
parents a97af221 c13bb27b
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,8 @@ tsk_fs_read_block_decrypt(TSK_FS_INFO * a_fs, TSK_DADDR_T a_addr, char *a_buf,
if ((a_fs->flags & TSK_FS_INFO_FLAG_ENCRYPTED)
&& ret_len > 0
&& a_fs->decrypt_block) {
for (TSK_DADDR_T i = 0; i < a_len / a_fs->block_size; i++) {
TSK_DADDR_T i;
for (i = 0; i < a_len / a_fs->block_size; i++) {
a_fs->decrypt_block(a_fs, crypto_id + i,
a_buf + (a_fs->block_size * i));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment