Author: matz Date: Mon Feb 11 10:15:44 2008 New Revision: 8601 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8601&view=rev Log: Always initialize outgoing vars (probable cause for zypper crash). Modified: trunk/sat-solver/src/solver.c Modified: trunk/sat-solver/src/solver.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/solver.c?rev=8601&r1=8600&r2=8601&view=diff ============================================================================== --- trunk/sat-solver/src/solver.c (original) +++ trunk/sat-solver/src/solver.c Mon Feb 11 10:15:44 2008 @@ -3007,7 +3007,12 @@ 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; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org