From c5e231a711103a960702e25e685ba598297d5f5a Mon Sep 17 00:00:00 2001 From: van Hauser Date: Mon, 2 Dec 2019 16:36:18 +0100 Subject: support gcc-4.x --- src/afl-fuzz-python.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/afl-fuzz-python.c') 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])) { -- cgit 1.4.1