diff options
author | Michael Schroeder <mls@suse.de> | 2014-01-08 14:29:44 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-01-08 14:29:44 +0100 |
commit | 84957715aacbe8405e3cb367fe763220d5ba6b42 (patch) | |
tree | 039102e6e383fdb5f9e4c0974d9e5f9de7835e31 /src | |
parent | c8beaece09040926fb9ea9d6c42b24bda463392e (diff) | |
download | libsolv-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.c | 2 | ||||
-rw-r--r-- | src/solvable.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; |