]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Don’t finalize ZstdCompressor twice
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Feb 2022 08:57:08 +0000 (09:57 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Feb 2022 19:42:28 +0000 (20:42 +0100)
This fixes an issue with older libzstd versions, which don’t like when
you continue writing data to a stream after calling ZSTD_endStream.

src/core/Manifest.cpp

index d162fe2c6c7efcb05bc5a04fde752445fd7ffeeb..0583d1a6f0f16edf68647cccc2ccd5ac136e85df 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2009-2021 Joel Rosdahl and other contributors
+// Copyright (C) 2009-2022 Joel Rosdahl and other contributors
 //
 // See doc/AUTHORS.adoc for a complete list of contributors.
 //
@@ -245,8 +245,6 @@ Manifest::write(Writer& writer) const
     }
     writer.write(result.key.bytes(), Digest::size());
   }
-
-  writer.finalize();
 }
 
 bool