We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 436b07c commit bdf58eaCopy full SHA for bdf58ea
1 file changed
src/util.c
@@ -112,18 +112,14 @@ pending_call_callback(void *ignored)
112
113
pending_call_registered = 0;
114
115
- size_t ran = 0;
116
-
117
- size_t i;
118
- for (i = 0; i < pending_call_slots_count; i++)
+ for (size_t i = 0; i < pending_call_slots_count; i++)
119
{
120
if (pending_call_slots[i].func)
121
122
int (*func)(void *) = pending_call_slots[i].func;
123
void *arg = pending_call_slots[i].arg;
124
pending_call_slots[i].func = 0;
125
pending_call_slots[i].arg = 0;
126
- ran++;
127
int res = func(arg);
128
assert((res == 0 && !PyErr_Occurred()) || (res != 0 && PyErr_Occurred()));
129
if (PyErr_Occurred())
0 commit comments