Drop a redundant binary entry size assignment

By definition, the length of a regular binary type entry equals it's count
so this is just redundant. The key word being regular, regions are a
different matter entirely: the assignment was originally introduced around
the turn of millenium in commit db32ab6bea,
apparently to include alignment in header region count but the surrounding
code has changed significantly since then...

Thanks to Michael Schroeder for pointing this out (in #308)
This commit is contained in:
Panu Matilainen 2018-02-20 13:28:00 +02:00
parent 0093584a6a
commit 59f8ca7b85
1 changed files with 0 additions and 1 deletions

View File

@ -1105,7 +1105,6 @@ static int copyTdEntry(const indexEntry entry, rpmtd td, headerGetFlags flags)
/* XXX 1 on success. */
rc = (rc < 0) ? 0 : 1;
} else {
count = entry->length;
td->data = (!minMem
? memcpy(xmalloc(count), entry->data, count)
: entry->data);