summaryrefslogtreecommitdiff
path: root/rpmdb/rpmdb.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-03-26 17:27:57 +0000
committerjbj <devnull@localhost>2004-03-26 17:27:57 +0000
commit60057a2de1e72a8077afc926e40addc923695419 (patch)
tree771ae515fd347b4195aa33d1614f3fe64f85cbf2 /rpmdb/rpmdb.c
parent18fe40be2d0c5a5b0d52e4cdccda909c812a9882 (diff)
downloadlibrpm-tizen-60057a2de1e72a8077afc926e40addc923695419.tar.gz
librpm-tizen-60057a2de1e72a8077afc926e40addc923695419.tar.bz2
librpm-tizen-60057a2de1e72a8077afc926e40addc923695419.zip
Splint fiddles.
CVS patchset: 7195 CVS date: 2004/03/26 17:27:57
Diffstat (limited to 'rpmdb/rpmdb.c')
-rw-r--r--rpmdb/rpmdb.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index a01bcd2df..2e467bd07 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -2866,7 +2866,9 @@ DBT * data = alloca(sizeof(*data));
* we won't have bogus information (i.e. the last succesful
* add).
*/
+/*@-mods@*/
myinstall_instance = 0;
+/*@=mods@*/
if (db == NULL)
return 0;
@@ -2976,13 +2978,13 @@ memset(data, 0, sizeof(*data));
if (hdrNum)
{
- /* Need to save the header number for the current
- * transaction.
- */
- myinstall_instance = hdrNum;
-
dbiIndexItem rec = dbiIndexNewItem(hdrNum, 0);
+ /* Save the header number for the current transaction. */
+/*@-mods@*/
+ myinstall_instance = hdrNum;
+/*@=mods@*/
+
if (dbiTags != NULL)
for (dbix = 0; dbix < dbiTagsMax; dbix++) {
const char *av[1];
@@ -3018,7 +3020,9 @@ memset(data, 0, sizeof(*data));
mi_offset.ui = hdrNum;
if (dbiByteSwapped(dbi) == 1)
_DBSWAP(mi_offset);
+/*@-immediatetrans@*/
key->data = (void *) &mi_offset;
+/*@=immediatetrans@*/
key->size = sizeof(mi_offset.ui);
data->data = headerUnload(h);
data->size = headerSizeof(h, HEADER_MAGIC_NO);