bin/xbps-install/main.c: fix dead assignment.

Found by clang-analyzer.

Bug Summary

File: bin/xbps-install/main.c
Warning: line 246, column 5
Value stored to 'rv' is never read
This commit is contained in:
Juan RP 2019-06-18 13:47:25 +02:00
parent daf65b0767
commit 5f68687cbb

View File

@ -243,7 +243,7 @@ main(int argc, char **argv)
for (i = optind; i < argc; i++) {
rv = update_pkg(&xh, argv[i]);
if (npkgs >= 2 && rv == EEXIST) {
rv = 0;
;
} else if (rv != 0) {
xbps_end(&xh);
exit(rv);