diff options
Diffstat (limited to 'lib/verify.c')
-rw-r--r-- | lib/verify.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/verify.c b/lib/verify.c index 746076d5e..35ad0b7d1 100644 --- a/lib/verify.c +++ b/lib/verify.c @@ -537,19 +537,7 @@ int rpmcliVerify(rpmts ts, QVA_t qva, const char ** argv) } ovsflags = rpmtsSetVSFlags(ts, vsflags); - if (qva->qva_source == RPMQV_ALL) { - /*@-nullpass@*/ /* FIX: argv can be NULL, cast to pass argv array */ - ec = rpmQueryVerify(qva, ts, (const char *) argv); - /*@=nullpass@*/ - } else { -/*@-boundsread@*/ - if (argv != NULL) - while ((arg = *argv++) != NULL) { - ec += rpmQueryVerify(qva, ts, arg); - rpmtsEmpty(ts); - } -/*@=boundsread@*/ - } + ec = rpmcliArgIter(ts, qva, argv); vsflags = rpmtsSetVSFlags(ts, ovsflags); if (qva->qva_showPackage == showVerifyPackage) |