Don't re-declare result variable

This commit is contained in:
Tyler Hobbs
2013-12-27 15:40:30 -06:00
parent 8ed3bff63b
commit cea1a5a125

View File

@@ -124,7 +124,7 @@ static void io_callback(struct ev_loop *loop, ev_io *watcher, int revents) {
if (revents & EV_ERROR && errno) {
result = PyObject_CallFunction(self->callback, "Obi", self, revents, errno);
} else {
PyObject *result = PyObject_CallFunction(self->callback, "Ob", self, revents);
result = PyObject_CallFunction(self->callback, "Ob", self, revents);
}
if (!result) {
PyErr_WriteUnraisable(self->callback);