]> Dogcows Code - chaz/openbox/commitdiff
declare variables first!
authorDana Jansens <danakj@orodu.net>
Mon, 17 Mar 2003 02:12:00 +0000 (02:12 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 17 Mar 2003 02:12:00 +0000 (02:12 +0000)
openbox/hooks.c

index 35d8d694f39b8b0324a8ac15b20e429ae718e810..ba5095fb0032f82c3871c0d11878ca048bd84612 100644 (file)
@@ -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)
This page took 0.024197 seconds and 4 git commands to generate.