diff --git a/apt/apt-pkg/rpm/rpmpm.cc b/apt/apt-pkg/rpm/rpmpm.cc index 33c5e83..950c5e3 100644 --- a/apt/apt-pkg/rpm/rpmpm.cc +++ b/apt/apt-pkg/rpm/rpmpm.cc @@ -852,14 +852,14 @@ bool pkgRPMLibPM::Process(vector &install, } } #else -#if RPM_VERSION < 0x040000 - rpmDependencyConflict *conflicts; -#else - rpmDependencyConflict conflicts; -#endif if (_config->FindB("RPM::NoDeps", false) == false) { +#if RPM_VERSION < 0x040000 + rpmDependencyConflict *conflicts = NULL; +#else + rpmDependencyConflict conflicts = NULL; +#endif int numConflicts; - if (rpmdepCheck(TS, &conflicts, &numConflicts)) { + if (rpmdepCheck(TS, &conflicts, &numConflicts) || conflicts) { _error->Error(_("Transaction set check failed")); if (conflicts) { printDepProblems(stderr, conflicts, numConflicts);