diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-30 15:50:29 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-30 15:50:29 +0300 |
commit | f67c47b856b0861e47629b13fce58b38afcdcc7a (patch) | |
tree | 0c5fd69ddb4c5a648939f74b9a3293a3a0bb09aa /rpmdb.c | |
parent | e4203f1a63cc1757c5c3c9d4f63a45f098b29544 (diff) | |
download | librpm-tizen-f67c47b856b0861e47629b13fce58b38afcdcc7a.tar.gz librpm-tizen-f67c47b856b0861e47629b13fce58b38afcdcc7a.tar.bz2 librpm-tizen-f67c47b856b0861e47629b13fce58b38afcdcc7a.zip |
Eliminate bunch of dead assignments on ts vsflags
- The common pattern here is grabbing current flags to a local
variable, modifying them for an operation and then restoring,
which is fine... but we dont care about the previous flags
when we're restoring them.
Diffstat (limited to 'rpmdb.c')
-rw-r--r-- | rpmdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ int main(int argc, char *argv[]) { rpmVSFlags vsflags = rpmExpandNumeric("%{_vsflags_rebuilddb}"); rpmVSFlags ovsflags = rpmtsSetVSFlags(ts, vsflags); ec = rpmtsRebuildDB(ts); - vsflags = rpmtsSetVSFlags(ts, ovsflags); + rpmtsSetVSFlags(ts, ovsflags); } break; case MODE_VERIFYDB: ec = rpmtsVerifyDB(ts); |