summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otk_c/rect.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/otk_c/rect.c b/otk_c/rect.c
index 14b5fc56..64204dc2 100644
--- a/otk_c/rect.c
+++ b/otk_c/rect.c
@@ -7,9 +7,7 @@ extern PyTypeObject OtkRect_Type;
PyObject *OtkRect_New(int x, int y, int width, int height)
{
- OtkRect* self;
-
- self = PyObject_New(OtkRect, &OtkRect_Type);
+ OtkRect* self = PyObject_New(OtkRect, &OtkRect_Type);
self->x = x;
self->y = y;