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:
c225bb8
)
Fix hdrContains() return value on error
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 23 Nov 2009 14:45:09 +0000
(16:45 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 23 Nov 2009 14:45:09 +0000
(16:45 +0200)
python/header-py.c
patch
|
blob
|
history
diff --git
a/python/header-py.c
b/python/header-py.c
index
57eb74b
..
9203156
100644
(file)
--- a/
python/header-py.c
+++ b/
python/header-py.c
@@
-247,7
+247,7
@@
static PyObject *hdrIsSource(hdrObject *s)
static int hdrContains(hdrObject *s, PyObject *pytag)
{
rpmTag tag;
- if (!tagNumFromPyObject(pytag, &tag)) return
NULL
;
+ if (!tagNumFromPyObject(pytag, &tag)) return
-1
;
return headerIsEntry(s->h, tag);
}