summaryrefslogtreecommitdiff
path: root/lib/header.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-10-04 14:59:49 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-10-04 14:59:49 +0300
commit235c24a5f631e992a8552b11ea70e3ad49a7bd9a (patch)
treef7ea8902d3e0b5f7593c978e9396a61eff6f8d88 /lib/header.c
parent472e569562d4c90d7a298080e0052856aa7fa86b (diff)
downloadlibrpm-tizen-235c24a5f631e992a8552b11ea70e3ad49a7bd9a.tar.gz
librpm-tizen-235c24a5f631e992a8552b11ea70e3ad49a7bd9a.tar.bz2
librpm-tizen-235c24a5f631e992a8552b11ea70e3ad49a7bd9a.zip
Eliminate redundant local variable in headerLoad()
Diffstat (limited to 'lib/header.c')
-rw-r--r--lib/header.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/header.c b/lib/header.c
index b01d1e48b..ba63de487 100644
--- a/lib/header.c
+++ b/lib/header.c
@@ -786,7 +786,6 @@ Header headerLoad(void * uh)
int32_t dl = ntohl(ei[1]); /* data length */
size_t pvlen = sizeof(il) + sizeof(dl) +
(il * sizeof(struct entryInfo_s)) + dl;
- void * pv = uh;
Header h = NULL;
entryInfo pe;
unsigned char * dataStart;
@@ -798,7 +797,6 @@ Header headerLoad(void * uh)
if (hdrchkTags(il) || hdrchkData(dl))
goto errxit;
- ei = (int32_t *) pv;
pe = (entryInfo) &ei[2];
dataStart = (unsigned char *) (pe + il);
dataEnd = dataStart + dl;