From: Michael Schroeder Date: Thu, 5 Oct 2017 14:53:26 +0000 (+0200) Subject: Allow solver_intersect_obsoleted to be called with no map X-Git-Tag: 0.6.30~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30671516a0ad24fac1807199c3f2d47459a0855e;p=thirdparty%2Flibsolv.git Allow solver_intersect_obsoleted to be called with no map --- diff --git a/src/solver_util.c b/src/solver_util.c index d5096acb..bd5d4b4d 100644 --- a/src/solver_util.c +++ b/src/solver_util.c @@ -374,7 +374,7 @@ solver_intersect_obsoleted(Solver *solv, Id p, Queue *q, int qstart, Map *m) break; } } - else if (!m->size && q->count - qstart <= 8) + else if (!m || (!m->size && q->count - qstart <= 8)) { /* faster than a map most of the time */ int k;