diff options
Diffstat (limited to 'build/policies.c')
-rw-r--r-- | build/policies.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/build/policies.c b/build/policies.c index 8cef31866..f8bb0c430 100644 --- a/build/policies.c +++ b/build/policies.c @@ -221,8 +221,6 @@ static rpmRC processPolicies(rpmSpec spec, Package pkg, int test) uint32_t flags = 0; poptContext optCon = NULL; - ARGV_t policies = NULL; - ARGV_t pol; rpmRC rc = RPMRC_FAIL; struct poptOption optionsTable[] = { @@ -236,10 +234,9 @@ static rpmRC processPolicies(rpmSpec spec, Package pkg, int test) goto exit; } - argvSplit(&policies, getStringBuf(pkg->policyList), "\n"); - for (pol = policies; *pol != NULL; pol++) { + for (ARGV_const_t pol = pkg->policyList; *pol != NULL; pol++) { ModuleRec mod; - char *line = *pol; + const char *line = *pol; const char **argv = NULL; int argc = 0; int err; @@ -288,7 +285,6 @@ static rpmRC processPolicies(rpmSpec spec, Package pkg, int test) rc = RPMRC_OK; exit: - argvFree(policies); return rc; } |