From 8dc6cd0eb8688ebc88b05aba4891b2ff4011a78f Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 1 Nov 2015 21:53:10 -0500 Subject: Fix a C declaration --- coverage/ctracer/tracer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'coverage') diff --git a/coverage/ctracer/tracer.c b/coverage/ctracer/tracer.c index c51086d..dba8a11 100644 --- a/coverage/ctracer/tracer.c +++ b/coverage/ctracer/tracer.c @@ -877,8 +877,9 @@ CTracer_call(CTracer *self, PyObject *args, PyObject *kwds) /* In Python, the what argument is a string, we need to find an int for the C function. */ for (what = 0; what_names[what]; what++) { + int should_break; ascii = MyText_AS_BYTES(what_str); - int should_break = !strcmp(MyBytes_AS_STRING(ascii), what_names[what]); + should_break = !strcmp(MyBytes_AS_STRING(ascii), what_names[what]); Py_DECREF(ascii); if (should_break) { break; -- cgit v1.2.1