summaryrefslogtreecommitdiff
path: root/lib/rpmts.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-14 11:21:22 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-03-14 11:31:45 +0200
commit9722257b24c8b42c35a005ab98400b7732e8c17d (patch)
tree731094454cd1a2f98c07c6493800582ed713c478 /lib/rpmts.c
parentbfe41b2e5a30199ac57bf106c8a69339a87140df (diff)
downloadrpm-9722257b24c8b42c35a005ab98400b7732e8c17d.tar.gz
rpm-9722257b24c8b42c35a005ab98400b7732e8c17d.tar.bz2
rpm-9722257b24c8b42c35a005ab98400b7732e8c17d.zip
Default to "not found" for rpmtsSolve() + comment behavior
- this fixes the behavior when (as normally is the case) there is no depsolve callback set
Diffstat (limited to 'lib/rpmts.c')
-rw-r--r--lib/rpmts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c
index b6b5093ea..e135ccece 100644
--- a/lib/rpmts.c
+++ b/lib/rpmts.c
@@ -476,7 +476,7 @@ int rpmtsSetSolveCallback(rpmts ts,
int rpmtsSolve(rpmts ts, rpmds key)
{
- int rc = 0;
+ int rc = 1; /* assume not found */
if (ts && ts->solve) {
rc = (*ts->solve)(ts, key, ts->solveData);
}