We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10cfee0 commit 129c9c5Copy full SHA for 129c9c5
yara-python.c
@@ -1567,6 +1567,7 @@ static PyObject* Rules_match(
1567
1568
Rules* object = (Rules*) self;
1569
1570
+ YR_SCANNER* scanner;
1571
CALLBACK_DATA callback_data;
1572
1573
callback_data.matches = NULL;
@@ -1644,12 +1645,12 @@ static PyObject* Rules_match(
1644
1645
}
1646
1647
- YR_SCANNER* scanner;
1648
- if (yr_scanner_create(object->rules, &scanner) != 0) {
+ if (yr_scanner_create(object->rules, &scanner) != 0)
1649
+ {
1650
return PyErr_Format(
1651
PyExc_Exception,
1652
"could not create scanner");
- }
1653
+ }
1654
1655
if (externals != NULL && externals != Py_None)
1656
{
0 commit comments