diff options
author | jbj <devnull@localhost> | 2003-04-02 21:16:26 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-04-02 21:16:26 +0000 |
commit | 95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5 (patch) | |
tree | d8eaa0d6c4bb93c5c12a18a3e066de0d68e3aae2 /lib/transaction.c | |
parent | 1f366d6a00d1cf8dc08a40fe789a1b68b4b80a5a (diff) | |
download | librpm-tizen-95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5.tar.gz librpm-tizen-95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5.tar.bz2 librpm-tizen-95f01d39a57c3c3d8ebf80cfd78e67c550dc32e5.zip |
Splint clean.
CVS patchset: 6729
CVS date: 2003/04/02 21:16:26
Diffstat (limited to 'lib/transaction.c')
-rw-r--r-- | lib/transaction.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/transaction.c b/lib/transaction.c index 0c8129d95..41ceba2f5 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -864,7 +864,7 @@ static void skipFiles(const rpmts ts, rpmfi fi) /* * Skip i18n language specific files. */ - if (fi->flangs && languages && *fi->flangs[i]) { + if (languages != NULL && fi->flangs != NULL && *fi->flangs[i]) { const char **lang, *l, *le; for (lang = languages; *lang != NULL; lang++) { if (!strcmp(*lang, "all")) @@ -957,11 +957,13 @@ static void skipFiles(const rpmts ts, rpmfi fi) } } +/*@-dependenttrans@*/ if (netsharedPaths) freeSplitString(netsharedPaths); #ifdef DYING /* XXX freeFi will deal with this later. */ fi->flangs = _free(fi->flangs); #endif if (languages) freeSplitString((char **)languages); +/*@=dependenttrans@*/ } /*@=bounds@*/ /*@=mustmod@*/ @@ -1464,6 +1466,7 @@ ts->ms_repackage += rpmswDiff(rpmswNow(&ts->end), &ts->begin)/1000; continue; /* XXX can't happen */ psm = rpmpsmNew(ts, p, fi); +assert(psm != NULL); psm->unorderedSuccessor = (rpmtsiOc(pi) >= rpmtsUnorderedSuccessors(ts, -1) ? 1 : 0); @@ -1524,7 +1527,9 @@ ts->ms_repackage += rpmswDiff(rpmswNow(&ts->end), &ts->begin)/1000; fi->fstates = NULL; fi->actions = NULL; +/*@-nullstate@*/ /* FIX: fi->actions is NULL */ fi = rpmfiFree(fi); +/*@=nullstate@*/ savep = rpmtsSetRelocateElement(ts, p); fi = rpmfiNew(ts, p->h, RPMTAG_BASENAMES, 1); |