diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-11-23 16:45:09 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-11-23 16:45:09 +0200 |
commit | 15c806b8ae53753481d09c0e980d668b44817b95 (patch) | |
tree | 053663b720bb4139583b304f65da2459d5b4b345 /python/header-py.c | |
parent | c225bb88cbe33d97ab9d7de20c4d6597b5394cc8 (diff) | |
download | librpm-tizen-15c806b8ae53753481d09c0e980d668b44817b95.tar.gz librpm-tizen-15c806b8ae53753481d09c0e980d668b44817b95.tar.bz2 librpm-tizen-15c806b8ae53753481d09c0e980d668b44817b95.zip |
Fix hdrContains() return value on error
Diffstat (limited to 'python/header-py.c')
-rw-r--r-- | python/header-py.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/header-py.c b/python/header-py.c index 57eb74bc2..9203156fb 100644 --- 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); } |