summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-01-10 10:35:30 +0200
committerPanu Matilainen <pmatilai@redhat.com>2012-01-10 10:35:30 +0200
commitfecba496374472db3d61d96bbfb72399ab93f756 (patch)
tree036dcd995eabf24ea6084b8d5fc76ae81dbedc5b /python
parentfbb44eb66defc286981d5d3d33858bfab74de200 (diff)
downloadlibrpm-tizen-fecba496374472db3d61d96bbfb72399ab93f756.tar.gz
librpm-tizen-fecba496374472db3d61d96bbfb72399ab93f756.tar.bz2
librpm-tizen-fecba496374472db3d61d96bbfb72399ab93f756.zip
Minor cleanup to rpmte_Key()
- Fix misleading indentation, initialize Key on declaration. No functional changes.
Diffstat (limited to 'python')
-rw-r--r--python/rpmte-py.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/python/rpmte-py.c b/python/rpmte-py.c
index 0850fc416..f15824780 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;
}