summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-09 11:10:41 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-09 11:10:41 +0300
commit37f739c251055c87fbafead10b05fcba33145d7c (patch)
tree938d5a97d4a39997bb4cb6b9d5b6b68ae24cd613 /lib
parent7e7c235b3438e0d147229eb14bce6f305f46bff1 (diff)
downloadlibrpm-tizen-37f739c251055c87fbafead10b05fcba33145d7c.tar.gz
librpm-tizen-37f739c251055c87fbafead10b05fcba33145d7c.tar.bz2
librpm-tizen-37f739c251055c87fbafead10b05fcba33145d7c.zip
Eliminate last remaining leftovers from "8/98 bug" workaround
- the ieprev calculations aren't used for anything, should've been in commit 4d0d54492c7d539cc806ca9e7fa59e919c28e45d really
Diffstat (limited to 'lib')
-rw-r--r--lib/header.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/header.c b/lib/header.c
index 8245248dc..f437c06fc 100644
--- a/lib/header.c
+++ b/lib/header.c
@@ -360,9 +360,6 @@ static int regionSwab(indexEntry entry, int il, int dl,
const unsigned char * dataEnd,
int regionid)
{
- struct indexEntry_s ieprev;
-
- memset(&ieprev, 0, sizeof(ieprev));
for (; il > 0; il--, pe++) {
struct indexEntry_s ie;
rpmTagType type;
@@ -403,8 +400,6 @@ static int regionSwab(indexEntry entry, int il, int dl,
unsigned diff = typeSizes[type] - (dl % typeSizes[type]);
if (diff != typeSizes[type]) {
dl += diff;
- if (ieprev.info.type == RPM_I18NSTRING_TYPE)
- ieprev.length += diff;
}
}
@@ -437,7 +432,6 @@ static int regionSwab(indexEntry entry, int il, int dl,
}
dl += ie.length;
- ieprev = ie; /* structure assignment */
}
return dl;