Dumb, dumb thinko/leftover from earlier prototype...

This commit is contained in:
Panu Matilainen 2008-06-19 16:08:00 +03:00
parent 1c445fcd97
commit 880a28f2ff
1 changed files with 2 additions and 1 deletions

View File

@ -1597,7 +1597,8 @@ static int headerPutType(Header h, rpmTag tag, rpmTagType reqtype,
int valid = 1;
/* Basic sanity checks: type must match and there must be data to put */
if (td.type != reqtype || size < 1 || data == NULL || h == NULL) {
if ((type & RPM_MASK_TYPE) != reqtype
|| size < 1 || data == NULL || h == NULL) {
valid = 0;
}