From 5fc70a54d73a54638812ba224cddbf84b5b5e1bf Mon Sep 17 00:00:00 2001 From: jbj Date: Wed, 30 Jun 1999 21:24:06 +0000 Subject: [PATCH] More ugliness. CVS patchset: 3119 CVS date: 1999/06/30 21:24:06 --- lib/query.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/query.c b/lib/query.c index 101230d22..b10011dde 100644 --- a/lib/query.c +++ b/lib/query.c @@ -604,15 +604,14 @@ int rpmQueryVerify(QVA_t *qva, enum rpmQVSources source, const char * arg, if (rc || spec == NULL) { fprintf(stderr, _("query of specfile %s failed, can't parse\n"), arg); - if (spec != NULL && freeSpecVec != NULL) freeSpecVec(spec); + if (spec != NULL) freeSpecVec(spec); retcode = 1; break; } if (specedit != NULL) { printNewSpecfile(spec); - if (freeSpecVec) - freeSpecVec(spec); + freeSpecVec(spec); retcode = 0; break; } @@ -629,8 +628,7 @@ int rpmQueryVerify(QVA_t *qva, enum rpmQVSources source, const char * arg, #endif showPackage(qva, NULL, pkg->header); } - if (freeSpecVec) - freeSpecVec(spec); + freeSpecVec(spec); } break; case RPMQV_ALL: