summaryrefslogtreecommitdiff
path: root/lib/rpminstall.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 /lib/rpminstall.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 'lib/rpminstall.c')
-rw-r--r--lib/rpminstall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpminstall.c b/lib/rpminstall.c
index 2cacacf33..02a80aee5 100644
--- a/lib/rpminstall.c
+++ b/lib/rpminstall.c
@@ -703,7 +703,7 @@ int rpmInstallSource(rpmts ts, const char * arg,
rpmtsSetVSFlags(ts, (specFilePtr) ? (rpmtsVSFlags(ts) | RPMVSF_NEEDPAYLOAD) : rpmtsVSFlags(ts));
rpmRC rpmrc = rpmInstallSourcePackage(ts, fd, specFilePtr, cookie);
rc = (rpmrc == RPMRC_OK ? 0 : 1);
- ovsflags = rpmtsSetVSFlags(ts, ovsflags);
+ rpmtsSetVSFlags(ts, ovsflags);
}
if (rc != 0) {
rpmlog(RPMLOG_ERR, _("%s cannot be installed\n"), arg);