summaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2007-11-21 21:05:27 -0800
committerDaniel Burrows <dburrows@debian.org>2007-11-21 21:05:27 -0800
commita2d2354294b5ed4ff0b3405e7fd1fe9a6dbcc486 (patch)
treefda1064eafb180e8f9e18fe70648e2ef28a87500 /src/ui.cc
parentfa32b03879d0d25b5862e9ec422ebdf7e36465bd (diff)
downloadaptitude-a2d2354294b5ed4ff0b3405e7fd1fe9a6dbcc486.tar.gz
Suppress generating solutions unless the limit is positive, not just nonzero.
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 75333933..38cd54a7 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -1855,7 +1855,7 @@ static void start_solution_calculation(bool blocking)
const int limit = aptcfg->FindI(PACKAGE "::ProblemResolver::StepLimit", 5000);
const int wait_steps = aptcfg->FindI(PACKAGE "::ProblemResolver::WaitSteps", 50);
- if(limit != 0)
+ if(limit > 0)
{
interactive_continuation * const k = new interactive_continuation(resman);