We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95375f1 + bc5bebc commit e1b2cb5Copy full SHA for e1b2cb5
1 file changed
src/uu/split/src/split.rs
@@ -1156,9 +1156,10 @@ where
1156
out_files = OutFiles::init(num_chunks, settings, false)?;
1157
}
1158
1159
+ let buf = &mut Vec::new();
1160
for i in 1_u64..=num_chunks {
1161
let chunk_size = chunk_size_base + (chunk_size_reminder > i - 1) as u64;
- let buf = &mut Vec::new();
1162
+ buf.clear();
1163
if num_bytes > 0 {
1164
// Read `chunk_size` bytes from the reader into `buf`
1165
// except the last.
0 commit comments