diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-11-01 21:53:10 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-11-01 21:53:10 -0500 |
commit | 8dc6cd0eb8688ebc88b05aba4891b2ff4011a78f (patch) | |
tree | 22232dc032e1d14ff5afacb77b97dc24fbd1dfbc /coverage | |
parent | 68f2561d20f98325f0d626ede5906c80092c8b56 (diff) | |
download | python-coveragepy-8dc6cd0eb8688ebc88b05aba4891b2ff4011a78f.tar.gz |
Fix a C declaration
Diffstat (limited to 'coverage')
-rw-r--r-- | coverage/ctracer/tracer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |