Minor cleanup to rpmte_Key()
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jan 2012 08:35:30 +0000 (10:35 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jan 2012 08:35:30 +0000 (10:35 +0200)
- Fix misleading indentation, initialize Key on declaration.
  No functional changes.

python/rpmte-py.c

index 0850fc4..f158247 100644 (file)
@@ -147,13 +147,11 @@ rpmte_DBOffset(rpmteObject * s, PyObject * unused)
 static PyObject *
 rpmte_Key(rpmteObject * s, PyObject * unused)
 {
-    PyObject * Key;
-
     /* XXX how to insure this is a PyObject??? */
-    Key = (PyObject *) rpmteKey(s->te);
+    PyObject * Key = (PyObject *) rpmteKey(s->te);
     if (Key == NULL)
-      Key = Py_None;
-       Py_INCREF(Key);
+       Key = Py_None;
+    Py_INCREF(Key);
     return Key;
 }