all repos — openbox @ 1fae0f4df364390faa53000f96b732ab520c3faf

openbox fork - make it a bit more like ryudo

declare variables first!
Dana Jansens danakj@orodu.net
commit

1fae0f4df364390faa53000f96b732ab520c3faf

parent

2870457bf55ca2b755f73b67626532e02d9473b8

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M openbox/hooks.copenbox/hooks.c

@@ -111,6 +111,7 @@ }

static PyObject *hook_call(HookObject *self, PyObject *args) { + PyObject *ret; GSList *it, *next; gboolean stop = FALSE;

@@ -121,9 +122,9 @@ return NULL;

} for (it = self->funcs; !stop && it != NULL;) { - next = it->next; /* incase the hook removes itself */ + next = it->next; /* incase the hook removes itself */ - PyObject *ret = PyObject_CallObject(it->data, args); + ret = PyObject_CallObject(it->data, args); if (ret == NULL) return NULL; if (ret != Py_None)