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