summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-01-08 14:29:44 +0100
committerMichael Schroeder <mls@suse.de>2014-01-08 14:29:44 +0100
commit84957715aacbe8405e3cb367fe763220d5ba6b42 (patch)
tree039102e6e383fdb5f9e4c0974d9e5f9de7835e31 /src
parentc8beaece09040926fb9ea9d6c42b24bda463392e (diff)
downloadlibsolv-84957715aacbe8405e3cb367fe763220d5ba6b42.tar.gz
libsolv-84957715aacbe8405e3cb367fe763220d5ba6b42.tar.bz2
libsolv-84957715aacbe8405e3cb367fe763220d5ba6b42.zip
fix a couple of minor problems found with cppcheck
Diffstat (limited to 'src')
-rw-r--r--src/pool.c2
-rw-r--r--src/solvable.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pool.c b/src/pool.c
index 57e9814..981c767 100644
--- a/src/pool.c
+++ b/src/pool.c
@@ -2117,7 +2117,7 @@ static inline Id dep2name(Pool *pool, Id dep)
{
while (ISRELDEP(dep))
{
- Reldep *rd = rd = GETRELDEP(pool, dep);
+ Reldep *rd = GETRELDEP(pool, dep);
dep = rd->name;
}
return dep;
diff --git a/src/solvable.c b/src/solvable.c
index eeb7b35..5afb481 100644
--- a/src/solvable.c
+++ b/src/solvable.c
@@ -404,7 +404,7 @@ static inline Id dep2name(Pool *pool, Id dep)
{
while (ISRELDEP(dep))
{
- Reldep *rd = rd = GETRELDEP(pool, dep);
+ Reldep *rd = GETRELDEP(pool, dep);
dep = rd->name;
}
return dep;