diff options
author | van Hauser <vh@thc.org> | 2019-12-03 01:40:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-03 01:40:41 +0100 |
commit | 4231c498392484fd2187b9ed1dedb1ba7bc0958b (patch) | |
tree | 366586c4ceef17998670a8c2d978869bdac64d56 /src/afl-fuzz-python.c | |
parent | b0d590fef4acb4b002429e4aec195e5740122494 (diff) | |
parent | ef2dc98773c55eb09e4c1a588fb74df58570f868 (diff) | |
download | afl++-4231c498392484fd2187b9ed1dedb1ba7bc0958b.tar.gz |
Merge branch 'master' into llvm_mode_build_fix
Diffstat (limited to 'src/afl-fuzz-python.c')
-rw-r--r-- | src/afl-fuzz-python.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c index 1a8b7f9d..70a547d2 100644 --- a/src/afl-fuzz-python.c +++ b/src/afl-fuzz-python.c @@ -42,7 +42,7 @@ int init_py() { if (py_module != NULL) { - u8 py_notrim = 0; + u8 py_notrim = 0, py_idx; py_functions[PY_FUNC_INIT] = PyObject_GetAttrString(py_module, "init"); py_functions[PY_FUNC_FUZZ] = PyObject_GetAttrString(py_module, "fuzz"); py_functions[PY_FUNC_INIT_TRIM] = @@ -51,7 +51,7 @@ int init_py() { PyObject_GetAttrString(py_module, "post_trim"); py_functions[PY_FUNC_TRIM] = PyObject_GetAttrString(py_module, "trim"); - for (u8 py_idx = 0; py_idx < PY_FUNC_COUNT; ++py_idx) { + for (py_idx = 0; py_idx < PY_FUNC_COUNT; ++py_idx) { if (!py_functions[py_idx] || !PyCallable_Check(py_functions[py_idx])) { |