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:
parent
d36d37fc6a
commit
daf65b0767
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user