From fecba496374472db3d61d96bbfb72399ab93f756 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 10 Jan 2012 10:35:30 +0200 Subject: [PATCH] Minor cleanup to rpmte_Key() - Fix misleading indentation, initialize Key on declaration. No functional changes. --- python/rpmte-py.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/python/rpmte-py.c b/python/rpmte-py.c index 0850fc4..f158247 100644 --- a/python/rpmte-py.c +++ b/python/rpmte-py.c @@ -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; } -- 2.7.4