summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2009-09-24 10:27:53 +0200
committerMichael Schroeder <mls@suse.de>2009-09-24 10:27:53 +0200
commitd5bb5e7e64fd2c3e361fcc4ae919bb359256f781 (patch)
tree3a5e22403005f52c59b914bae16b934e62c8e471 /src
parent7b9e796f8ad2d43a72c241251be86c204d800763 (diff)
downloadlibsolv-d5bb5e7e64fd2c3e361fcc4ae919bb359256f781.tar.gz
libsolv-d5bb5e7e64fd2c3e361fcc4ae919bb359256f781.tar.bz2
libsolv-d5bb5e7e64fd2c3e361fcc4ae919bb359256f781.zip
fix bug in solvable_lookup_str_base
Diffstat (limited to 'src')
-rw-r--r--src/solvable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/solvable.c b/src/solvable.c
index 26caf77..c7f71d8 100644
--- a/src/solvable.c
+++ b/src/solvable.c
@@ -73,7 +73,7 @@ solvable_lookup_str(Solvable *s, Id keyname)
return repo_lookup_str(s->repo, s - s->repo->pool->solvables, keyname);
}
-const char *
+static const char *
solvable_lookup_str_base(Solvable *s, Id keyname, Id basekeyname)
{
Pool *pool;
@@ -94,7 +94,7 @@ solvable_lookup_str_base(Solvable *s, Id keyname, Id basekeyname)
/* search for a solvable with same name and same base that has the
* translation */
if (!pool->whatprovides)
- return 0;
+ return basestr;
/* we do this in two passes, first same vendor, then all other vendors */
for (pass = 0; pass < 2; pass++)
{
@@ -113,7 +113,7 @@ solvable_lookup_str_base(Solvable *s, Id keyname, Id basekeyname)
return str;
}
}
- return 0;
+ return basestr;
}
const char *