summaryrefslogtreecommitdiff
path: root/rpmbuild.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 /rpmbuild.c
parente4203f1a63cc1757c5c3c9d4f63a45f098b29544 (diff)
downloadrpm-f67c47b856b0861e47629b13fce58b38afcdcc7a.tar.gz
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 'rpmbuild.c')
-rw-r--r--rpmbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmbuild.c b/rpmbuild.c
index 6aac0279f..c51aa36e1 100644
--- a/rpmbuild.c
+++ b/rpmbuild.c
@@ -511,7 +511,7 @@ static int build(rpmts ts, const char * arg, BTA_t ba, const char * rcfile)
}
exit:
- vsflags = rpmtsSetVSFlags(ts, ovsflags);
+ rpmtsSetVSFlags(ts, ovsflags);
/* Restore original configuration. */
rpmFreeMacros(NULL);
rpmFreeRpmrc();