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:
31fabc4
)
Return an explicit NULL from dbiFree(), remove dead assignment
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 31 May 2011 05:59:21 +0000
(08:59 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 31 May 2011 05:59:21 +0000
(08:59 +0300)
lib/backend/dbconfig.c
patch
|
blob
|
history
diff --git
a/lib/backend/dbconfig.c
b/lib/backend/dbconfig.c
index
28c4f50
..
ef56b3d
100644
(file)
--- 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)