From 37f739c251055c87fbafead10b05fcba33145d7c Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 9 Sep 2009 11:10:41 +0300 Subject: [PATCH] Eliminate last remaining leftovers from "8/98 bug" workaround - the ieprev calculations aren't used for anything, should've been in commit 4d0d54492c7d539cc806ca9e7fa59e919c28e45d really --- lib/header.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/header.c b/lib/header.c index 8245248..f437c06 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; -- 2.7.4