[Forensics-changes] [yara] 95/192: Put loop variable declaration out of the “for” statement as required by C89.

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:31:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.6.0
in repository yara.

commit 228c2fa9a72080074a9f0bc41e1cb15ecc1180e5
Author: plusvic <plusvic at gmail.com>
Date:   Fri Jan 27 14:13:01 2017 +0100

    Put loop variable declaration out of the “for” statement as required by C89.
---
 libyara/rules.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libyara/rules.c b/libyara/rules.c
index 18bac6a..8feda22 100644
--- a/libyara/rules.c
+++ b/libyara/rules.c
@@ -746,9 +746,11 @@ YR_API int yr_rules_save_stream(
     YR_RULES* rules,
     YR_STREAM* stream)
 {
-  for (int i = 0; i < YR_BITARRAY_NCHARS(MAX_THREADS); ++i) {
+  int i;
+
+  for (i = 0; i < YR_BITARRAY_NCHARS(MAX_THREADS); ++i)
     assert(rules->tidx_mask[i] == 0);
-  }
+
   return yr_arena_save_stream(rules->arena, stream);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list