projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e7c235
)
Eliminate last remaining leftovers from "8/98 bug" workaround
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 9 Sep 2009 08:10:41 +0000
(11:10 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 9 Sep 2009 08:10:41 +0000
(11:10 +0300)
- the ieprev calculations aren't used for anything, should've been in
commit
4d0d54492c7d539cc806ca9e7fa59e919c28e45d
really
lib/header.c
patch
|
blob
|
history
diff --git
a/lib/header.c
b/lib/header.c
index
8245248
..
f437c06
100644
(file)
--- 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;