summaryrefslogtreecommitdiff
path: root/build/parseChangelog.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-05-05 19:28:32 +0000
committerjbj <devnull@localhost>2001-05-05 19:28:32 +0000
commit8f75bbc17dab6c334583f33c7b912fb16d2ddc4b (patch)
tree145862352d95e2d391f0d65db0027d44bf236b39 /build/parseChangelog.c
parentd78e027808deb6aef4e65338d160986d7e576a90 (diff)
downloadlibrpm-tizen-8f75bbc17dab6c334583f33c7b912fb16d2ddc4b.tar.gz
librpm-tizen-8f75bbc17dab6c334583f33c7b912fb16d2ddc4b.tar.bz2
librpm-tizen-8f75bbc17dab6c334583f33c7b912fb16d2ddc4b.zip
- enough lclint annotations and fiddles already.
CVS patchset: 4741 CVS date: 2001/05/05 19:28:32
Diffstat (limited to 'build/parseChangelog.c')
-rw-r--r--build/parseChangelog.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/build/parseChangelog.c b/build/parseChangelog.c
index 8b9c5fa02..44515383e 100644
--- a/build/parseChangelog.c
+++ b/build/parseChangelog.c
@@ -203,13 +203,11 @@ static int addChangelog(Header h, StringBuf sb)
int parseChangelog(Spec spec)
{
int nextPart, res, rc;
- StringBuf sb;
-
- sb = newStringBuf();
+ StringBuf sb = newStringBuf();
/* There are no options to %changelog */
if ((rc = readLine(spec, STRIP_COMMENTS)) > 0) {
- freeStringBuf(sb);
+ sb = freeStringBuf(sb);
return PART_NONE;
}
if (rc)
@@ -226,7 +224,7 @@ int parseChangelog(Spec spec)
}
res = addChangelog(spec->packages->header, sb);
- freeStringBuf(sb);
+ sb = freeStringBuf(sb);
return (res) ? res : nextPart;
}