diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 15:55:02 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 15:55:02 +0300 |
commit | 312ceee39240c321a0cb8f1cc7aad939477b9699 (patch) | |
tree | 3a347bcdcdd71b3a9df0107ff012f1b62c1060dd /build | |
parent | add59e49eab87e98cf3ef6bedb8ce0c251199376 (diff) | |
download | librpm-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
Diffstat (limited to 'build')
-rw-r--r-- | build/parseReqs.c | 2 |
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 */ |