Move variable definition to the beginning of code block
@@ -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)
{
