projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbb44eb
)
Minor cleanup to rpmte_Key()
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 10 Jan 2012 08:35:30 +0000
(10:35 +0200)
committer
Panu 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
patch
|
blob
|
history
diff --git
a/python/rpmte-py.c
b/python/rpmte-py.c
index
0850fc4
..
f158247
100644
(file)
--- 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;
}