summaryrefslogtreecommitdiff
path: root/build/parsePreamble.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-10-04 19:40:03 +0000
committerjbj <devnull@localhost>1999-10-04 19:40:03 +0000
commitcabcec362682a5bd68d5acc2191333cb903a2e4e (patch)
tree5f0d997e93e252f38bacceac68d9c223bb237b29 /build/parsePreamble.c
parent767f75648fb05790ddb3200cba8ddf730a136dd2 (diff)
downloadlibrpm-tizen-cabcec362682a5bd68d5acc2191333cb903a2e4e.tar.gz
librpm-tizen-cabcec362682a5bd68d5acc2191333cb903a2e4e.tar.bz2
librpm-tizen-cabcec362682a5bd68d5acc2191333cb903a2e4e.zip
lclint annotations from build.
CVS patchset: 3366 CVS date: 1999/10/04 19:40:03
Diffstat (limited to 'build/parsePreamble.c')
-rw-r--r--build/parsePreamble.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index bf05a63aa..43451aa5c 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -272,9 +272,10 @@ exit:
struct spectag *
stashSt(Spec spec, Header h, int tag, const char *lang)
{
- struct spectags *st = spec->st;
struct spectag *t = NULL;
- if (st) {
+
+ if (spec->st) {
+ struct spectags *st = spec->st;
if (st->st_ntags == st->st_nalloc) {
st->st_nalloc += 10;
st->st_t = xrealloc(st->st_t, st->st_nalloc * sizeof(*(st->st_t)));
@@ -368,8 +369,8 @@ static int handlePreambleTag(Spec spec, Package pkg, int tag, char *macro,
break;
case RPMTAG_GROUP:
case RPMTAG_SUMMARY:
- stashSt(spec, pkg->header, tag, lang);
- /* fall thru */
+ (void) stashSt(spec, pkg->header, tag, lang);
+ /*@fallthrough@*/
case RPMTAG_DISTRIBUTION:
case RPMTAG_VENDOR:
case RPMTAG_LICENSE: