summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-21 15:55:02 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-21 15:55:02 +0300
commit312ceee39240c321a0cb8f1cc7aad939477b9699 (patch)
tree3a347bcdcdd71b3a9df0107ff012f1b62c1060dd
parentadd59e49eab87e98cf3ef6bedb8ce0c251199376 (diff)
downloadlibrpm-tizen-312ceee39240c321a0cb8f1cc7aad939477b9699.tar.gz
librpm-tizen-312ceee39240c321a0cb8f1cc7aad939477b9699.tar.bz2
librpm-tizen-312ceee39240c321a0cb8f1cc7aad939477b9699.zip
Initialize nametag to RPMTAG_NOT_FOUND in parseRCPOT()
- Doesn't matter what the value is, the switch (somewhat hysterically) makes it default to RPMTAG_REQUIRENAME in unknown cases anyway
-rw-r--r--build/parseReqs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/parseReqs.c b/build/parseReqs.c
index 06ad8d9b2..c7aebcced 100644
--- a/build/parseReqs.c
+++ b/build/parseReqs.c
@@ -40,7 +40,7 @@ rpmRC parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTag tagN,
{
const char *r, *re, *v, *ve;
char * N = NULL, * EVR = NULL;
- rpmTag nametag = 0;
+ rpmTag nametag = RPMTAG_NOT_FOUND;
rpmsenseFlags Flags;
Header h = pkg->header; /* everything except buildrequires go here */
rpmRC rc = RPMRC_FAIL; /* assume failure */