Move output_fd into HAVE_SPLICE.

This commit is contained in:
Andrew Wood
2026-05-03 17:06:47 +01:00
parent 11d727a88d
commit ae60fc0688
+1 -1
View File
@@ -341,10 +341,10 @@ static bool pv__transfer_read(pvstate_t state, int fd, bool *eof_in, bool *eof_o
size_t bytes_can_read;
off_t amount_to_skip, amount_skipped, orig_offset, skip_offset;
ssize_t nread;
#ifdef HAVE_SPLICE
int output_fd;
output_fd = state->control.output_fd;
#ifdef HAVE_SPLICE
if (state->control.discard_input && !state->control.no_splice)
output_fd = state->transfer.discard_fd;
#endif /* HAVE_SPLICE */