summaryrefslogtreecommitdiff
path: root/python/rpmmi-py.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/rpmmi-py.c')
-rw-r--r--python/rpmmi-py.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c
index 5fc40207f..4766bbdb9 100644
--- a/python/rpmmi-py.c
+++ b/python/rpmmi-py.c
@@ -84,6 +84,7 @@ rpmmi_iter(rpmmiObject * s)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_iternext(rpmmiObject * s)
/*@globals rpmGlobalMacroContext @*/
@@ -100,6 +101,7 @@ rpmmi_iternext(rpmmiObject * s)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_Next(rpmmiObject * s, PyObject *args)
/*@globals rpmGlobalMacroContext, _Py_NoneStruct @*/
@@ -121,6 +123,7 @@ rpmmi_Next(rpmmiObject * s, PyObject *args)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_Instance(rpmmiObject * s, PyObject * args)
/*@*/
@@ -130,7 +133,7 @@ rpmmi_Instance(rpmmiObject * s, PyObject * args)
if (!PyArg_ParseTuple(args, ":Instance"))
return NULL;
- if (s->mi)
+ if (s->mi != NULL)
rc = rpmdbGetIteratorOffset(s->mi);
return Py_BuildValue("i", rc);
@@ -138,6 +141,7 @@ rpmmi_Instance(rpmmiObject * s, PyObject * args)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_Count(rpmmiObject * s, PyObject * args)
/*@*/
@@ -147,7 +151,7 @@ rpmmi_Count(rpmmiObject * s, PyObject * args)
if (!PyArg_ParseTuple(args, ":Instance"))
return NULL;
- if (s->mi)
+ if (s->mi != NULL)
rc = rpmdbGetIteratorCount(s->mi);
return Py_BuildValue("i", rc);
@@ -155,6 +159,7 @@ rpmmi_Count(rpmmiObject * s, PyObject * args)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_Pattern(rpmmiObject * s, PyObject * args)
/*@globals rpmGlobalMacroContext, _Py_NoneStruct @*/