Show More
@@ -603,7 +603,7 b" impl<'revlog> RevlogEntry<'revlog> {" | |||
|
603 | 603 | Ok(buf) |
|
604 | 604 | } else { |
|
605 | 605 | let cap = self.uncompressed_len.max(0) as usize; |
|
606 |
let mut buf = |
|
|
606 | let mut buf = Vec::with_capacity(cap); | |
|
607 | 607 | let len = zstd_decompress_to_buffer(self.bytes, &mut buf) |
|
608 | 608 | .map_err(|e| corrupted(e.to_string()))?; |
|
609 | 609 | if len != self.uncompressed_len as usize { |
General Comments 0
You need to be logged in to leave comments.
Login now