summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2011-03-04 04:56:26 +0100
committerJindrich Novy <jnovy@redhat.com>2011-03-04 04:56:26 +0100
commita6026437f2c1986627b64390084b5281c2aeea43 (patch)
treeafd220ee91fbcaa17270366b7a58a5b910f0f2ae
parent00274a017c43becb321fce3490fcc9b94ccee466 (diff)
downloadlibrpm-tizen-a6026437f2c1986627b64390084b5281c2aeea43.tar.gz
librpm-tizen-a6026437f2c1986627b64390084b5281c2aeea43.tar.bz2
librpm-tizen-a6026437f2c1986627b64390084b5281c2aeea43.zip
Define variables in processBinaryPolicies() only if they are needed
-rw-r--r--build/policies.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/policies.c b/build/policies.c
index f8bb0c430..4beedaba6 100644
--- a/build/policies.c
+++ b/build/policies.c
@@ -291,11 +291,11 @@ static rpmRC processPolicies(rpmSpec spec, Package pkg, int test)
rpmRC processBinaryPolicies(rpmSpec spec, int test)
{
- Package pkg;
rpmRC rc = RPMRC_OK;
+#if WITH_SELINUX
+ Package pkg;
char *nvr;
-#if WITH_SELINUX
for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
if (pkg->policyList == NULL) {
continue;