summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-31 08:59:21 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-31 08:59:21 +0300
commit695380d914e229c2bb7de00591027a0b2c30b18e (patch)
treee3a1716a4c16a2562dce28f6a6c76ba62c5f436c
parent31fabc4d035af1b230184e52276cb793ec92721c (diff)
downloadlibrpm-tizen-695380d914e229c2bb7de00591027a0b2c30b18e.tar.gz
librpm-tizen-695380d914e229c2bb7de00591027a0b2c30b18e.tar.bz2
librpm-tizen-695380d914e229c2bb7de00591027a0b2c30b18e.zip
Return an explicit NULL from dbiFree(), remove dead assignment
-rw-r--r--lib/backend/dbconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backend/dbconfig.c b/lib/backend/dbconfig.c
index 28c4f50f1..ef56b3d10 100644
--- a/lib/backend/dbconfig.c
+++ b/lib/backend/dbconfig.c
@@ -76,9 +76,9 @@ static const struct poptOption rdbOptions[] = {
dbiIndex dbiFree(dbiIndex dbi)
{
if (dbi) {
- dbi = _free(dbi);
+ free(dbi);
}
- return dbi;
+ return NULL;
}
dbiIndex dbiNew(rpmdb rdb, rpmDbiTagVal rpmtag)