Skip to content

Commit 5f71f77

Browse files
committed
fix fio_send_file_local
1 parent 2eaeb94 commit 5f71f77

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/file.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,13 +2933,13 @@ fio_send_file_local(const char *from_fullpath, FILE* out, bool cut_zero_tail,
29332933

29342934
if (st.write_size < st.read_size)
29352935
{
2936-
/*
2937-
* We still need to calc crc for zero tail.
2938-
*/
2939-
fio_send_file_crc(&st, NULL, 0);
2940-
29412936
if (!cut_zero_tail)
29422937
{
2938+
/*
2939+
* We still need to calc crc for zero tail.
2940+
*/
2941+
fio_send_file_crc(&st, NULL, 0);
2942+
29432943
/*
29442944
* Let's write single zero byte to the end of file to restore
29452945
* logical size.

0 commit comments

Comments
 (0)