From: Michael Matz Date: Mon, 11 Feb 2008 09:15:44 +0000 (+0000) Subject: Always initialize outgoing vars (probable cause for zypper crash). X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~638 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d65960b68fd2e522934426b42a0e784438db3eb;p=thirdparty%2Flibsolv.git Always initialize outgoing vars (probable cause for zypper crash). --- diff --git a/src/solver.c b/src/solver.c index a8bea9d4..24ed84d2 100644 --- a/src/solver.c +++ b/src/solver.c @@ -3007,7 +3007,12 @@ solver_problemruleinfo(Solver *solv, Queue *job, Id rid, Id *depp, Id *sourcep, assert(!dontfix); /* dontfix packages never have a neg assertion */ /* see why the package is not installable */ if (s->arch != ARCH_SRC && s->arch != ARCH_NOSRC && !pool_installable(pool, s)) - return SOLVER_PROBLEM_NOT_INSTALLABLE; + { + *depp = 0; + *sourcep = -rid; + *targetp = 0; + return SOLVER_PROBLEM_NOT_INSTALLABLE; + } /* check requires */ assert(s->requires); reqp = s->repo->idarraydata + s->requires;