Use RPMTAG_NOT_FOUND instead of for "invalid tag" value
This commit is contained in:
parent
cb13c43986
commit
5eda185109
|
@ -224,7 +224,7 @@ static int findTag(headerSprintfArgs hsa, sprintfToken token, const char * name)
|
|||
? &token->u.cond.tag : &token->u.tag);
|
||||
|
||||
stag->fmt = NULL;
|
||||
stag->tag = -1;
|
||||
stag->tag = RPMTAG_NOT_FOUND;
|
||||
|
||||
if (rstreq(tagname, "*")) {
|
||||
stag->tag = -2;
|
||||
|
|
|
@ -326,7 +326,7 @@ rpmsenseFlags rpmdsFlags(const rpmds ds)
|
|||
|
||||
rpmTag rpmdsTagN(const rpmds ds)
|
||||
{
|
||||
rpmTag tagN = 0;
|
||||
rpmTag tagN = RPMTAG_NOT_FOUND;
|
||||
|
||||
if (ds != NULL)
|
||||
tagN = ds->tagN;
|
||||
|
|
Loading…
Reference in New Issue