summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-02-26 01:20:52 +0000
committerjbj <devnull@localhost>2004-02-26 01:20:52 +0000
commit99825287bd2f7c1bd663194cf67d639de6ca31ec (patch)
treebb4deb7cde1352e289a70f7c0e529f8370951758 /build
parent55eec2cbdcbff3248cb8c6de9e2860820ab430a7 (diff)
downloadlibrpm-tizen-99825287bd2f7c1bd663194cf67d639de6ca31ec.tar.gz
librpm-tizen-99825287bd2f7c1bd663194cf67d639de6ca31ec.tar.bz2
librpm-tizen-99825287bd2f7c1bd663194cf67d639de6ca31ec.zip
splint fiddles.
CVS patchset: 7134 CVS date: 2004/02/26 01:20:52
Diffstat (limited to 'build')
-rw-r--r--build/files.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/files.c b/build/files.c
index 168b5ae4a..70bd75232 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1767,12 +1767,13 @@ static int processMetadataFile(Package pkg, FileList fl, const char * fileURL,
} else
fn = rpmGenPath(buildURL, NULL, fn);
+/*@-branchstate@*/
switch (tag) {
default:
rpmError(RPMERR_BADSPEC, _("%s: can't load unknown tag (%d).\n"),
fn, tag);
goto exit;
- /*@notreached@*/
+ /*@notreached@*/ break;
case RPMTAG_PUBKEYS:
if ((rc = pgpReadPkts(fn, &pkt, &pktlen)) <= 0) {
rpmError(RPMERR_BADSPEC, _("%s: public key read failed.\n"), fn);
@@ -1793,6 +1794,7 @@ static int processMetadataFile(Package pkg, FileList fl, const char * fileURL,
pkt = NULL;
break;
}
+/*@=branchstate@*/
xx = headerAddOrAppendEntry(pkg->header, tag,
RPM_STRING_ARRAY_TYPE, &apkt, 1);