summaryrefslogtreecommitdiff
path: root/rpmdb.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-30 15:50:29 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-30 15:50:29 +0300
commitf67c47b856b0861e47629b13fce58b38afcdcc7a (patch)
tree0c5fd69ddb4c5a648939f74b9a3293a3a0bb09aa /rpmdb.c
parente4203f1a63cc1757c5c3c9d4f63a45f098b29544 (diff)
downloadlibrpm-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdb.c b/rpmdb.c
index cc4a7aa73..7223fdf28 100644
--- a/rpmdb.c
+++ b/rpmdb.c
@@ -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);