]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Use kNullRawSeqStore constant in zstdmt_compress.c
authorsenhuang42 <senhuang96@fb.com>
Mon, 5 Oct 2020 14:50:49 +0000 (10:50 -0400)
committersenhuang42 <senhuang96@fb.com>
Wed, 7 Oct 2020 17:56:25 +0000 (13:56 -0400)
lib/compress/zstdmt_compress.c

index f789ae5bfddc5bdfb377035281a9705b63f4c4e8..06462fe5a65fd44e6164c9092534d255b04ee696 100644 (file)
@@ -277,7 +277,7 @@ static size_t ZSTDMT_sizeof_seqPool(ZSTDMT_seqPool* seqPool)
 
 static rawSeqStore_t bufferToSeq(buffer_t buffer)
 {
-    rawSeqStore_t seq = {NULL, 0, 0, 0, 0};
+    rawSeqStore_t seq = kNullRawSeqStore;
     seq.seq = (rawSeq*)buffer.start;
     seq.capacity = buffer.capacity / sizeof(rawSeq);
     return seq;