diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-28 22:28:53 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-28 22:28:53 +0300 |
commit | d26080fa88d695396068543c7be88c9ffbf2307c (patch) | |
tree | d0cdd60640b387a165463fc188831e143d2e27c4 /lib/rpmds.c | |
parent | 9f72c7f2cda74172bfe5c6c558f4c20b783ad115 (diff) | |
download | librpm-tizen-d26080fa88d695396068543c7be88c9ffbf2307c.tar.gz librpm-tizen-d26080fa88d695396068543c7be88c9ffbf2307c.tar.bz2 librpm-tizen-d26080fa88d695396068543c7be88c9ffbf2307c.zip |
Eliminate dead NULL-assignments at scope-end in librpm, part IV
- Remove NULL-assignments of local variables at the end of scope
in the higher level package-related "objects": rpmds, rpmfi, rpmte
Diffstat (limited to 'lib/rpmds.c')
-rw-r--r-- | lib/rpmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmds.c b/lib/rpmds.c index 3dff6cb55..a62bb8d31 100644 --- a/lib/rpmds.c +++ b/lib/rpmds.c @@ -784,7 +784,7 @@ int rpmdsMatchesDep (const Header h, int ix, const rpmds req, int nopromote) rpmdsSetIx(provides,ix); result = rpmdsCompare(provides, req); - provides = rpmdsFree(provides); + rpmdsFree(provides); return result; } @@ -810,7 +810,7 @@ int rpmdsAnyMatchesDep (const Header h, const rpmds req, int nopromote) } exit: - provides = rpmdsFree(provides); + rpmdsFree(provides); return result; } @@ -909,7 +909,7 @@ int rpmdsRpmlib(rpmds * dsp, const void * tblp) rpmds ds = rpmdsSingle(RPMTAG_PROVIDENAME, rlp->featureName, rlp->featureEVR, rlp->featureFlags); rc = rpmdsMerge(dsp, ds); - ds = rpmdsFree(ds); + rpmdsFree(ds); } return rc; } |