[Forensics-changes] [yara] 169/192: Move variable definition to the beginning of code block

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:32:00 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 0cc8c0b95f69fd19b94b42c20083cf836ed93cd1
Author: plusvic <plusvic at gmail.com>
Date:   Mon May 8 16:21:42 2017 +0200

    Move variable definition to the beginning of code block
---
 libyara/lexer.l | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libyara/lexer.l b/libyara/lexer.l
index 6d6337f..bb678b5 100644
--- a/libyara/lexer.l
+++ b/libyara/lexer.l
@@ -830,6 +830,7 @@ int yr_lex_parse_rules_fd(
   YR_COMPILER* compiler)
 {
   yyscan_t yyscanner;
+  char buf[1024];
 
   compiler->errors = 0;
 
@@ -842,8 +843,6 @@ int yr_lex_parse_rules_fd(
   yydebug = 1;
   #endif
 
-  char buf[1024];
-
   yyset_extra(compiler, yyscanner);
   while (1)
   {

-- 
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