[Forensics-changes] [yara] 235/407: Accept None for argument "externals"
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.3.0
in repository yara.
commit a2927774cf8e95cf9616e740188c514705fd8b2a
Author: Victor Manuel Alvarez <vmalvarez at virustotal.com>
Date: Mon Dec 1 12:23:40 2014 +0100
Accept None for argument "externals"
---
yara-python/yara-python.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/yara-python/yara-python.c b/yara-python/yara-python.c
index ecb8b85..2fbf0fe 100644
--- a/yara-python/yara-python.c
+++ b/yara-python/yara-python.c
@@ -1022,7 +1022,7 @@ static PyObject * Rules_match(
}
}
- if (externals != NULL)
+ if (externals != NULL && externals != Py_None)
{
if (PyDict_Check(externals))
{
@@ -1350,7 +1350,7 @@ static PyObject * yara_compile(
}
}
- if (externals != NULL)
+ if (externals != NULL && externals != Py_None)
{
if (PyDict_Check(externals))
{
@@ -1495,7 +1495,7 @@ static PyObject * yara_compile(
rules->rules = yara_rules;
rules->iter_current_rule = rules->rules->rules_list_head;
- if (externals != NULL)
+ if (externals != NULL && externals != Py_None)
rules->externals = PyDict_Copy(externals);
else
rules->externals = NULL;
--
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