diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-17 02:12:00 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-17 02:12:00 +0000 |
| commit | 1fae0f4df364390faa53000f96b732ab520c3faf (patch) | |
| tree | c58a1b7bd5f7c9da7b30de5ff5490c453bb25c42 /openbox | |
| parent | 2870457bf55ca2b755f73b67626532e02d9473b8 (diff) | |
declare variables first!
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/hooks.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) |
