X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fhooks.c;h=ba5095fb0032f82c3871c0d11878ca048bd84612;hb=698b9a09986a41b6724ac7fb8e6ca668c3645cea;hp=35d8d694f39b8b0324a8ac15b20e429ae718e810;hpb=f8a47de5ec444c452093371e3db16857eb39a490;p=chaz%2Fopenbox diff --git a/openbox/hooks.c b/openbox/hooks.c index 35d8d694..ba5095fb 100644 --- a/openbox/hooks.c +++ b/openbox/hooks.c @@ -111,6 +111,7 @@ static PyObject *hook_remove(HookObject *self, PyObject *args) static PyObject *hook_call(HookObject *self, PyObject *args) { + PyObject *ret; GSList *it, *next; gboolean stop = FALSE; @@ -121,9 +122,9 @@ static PyObject *hook_call(HookObject *self, PyObject *args) } 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)