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

Found by clang-analyzer.

Bug Summary

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

View File

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