diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 13:11:56 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 13:11:56 +0300 |
commit | 5eda18510905ebeb09f1126195d6bb563bd2483a (patch) | |
tree | b181f7b86b040a0026b88b4409fbecc4184c8f2c /lib/headerfmt.c | |
parent | cb13c4398609bb8e9d7a6750075d79d1662a26e1 (diff) | |
download | librpm-tizen-5eda18510905ebeb09f1126195d6bb563bd2483a.tar.gz librpm-tizen-5eda18510905ebeb09f1126195d6bb563bd2483a.tar.bz2 librpm-tizen-5eda18510905ebeb09f1126195d6bb563bd2483a.zip |
Use RPMTAG_NOT_FOUND instead of for "invalid tag" value
Diffstat (limited to 'lib/headerfmt.c')
-rw-r--r-- | lib/headerfmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/headerfmt.c b/lib/headerfmt.c index 7e86b970d..828c6e49e 100644 --- a/lib/headerfmt.c +++ b/lib/headerfmt.c @@ -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; |