From 91daee5c068c105d456331ff30fd6971ec9cd437 Mon Sep 17 00:00:00 2001 From: Bimba Shrestha Date: Thu, 26 Sep 2019 16:21:57 -0700 Subject: [PATCH] Fixing appveyor test --- tests/fuzzer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fuzzer.c b/tests/fuzzer.c index c3687974..0b935c82 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -1987,10 +1987,11 @@ static int basicUnitTests(U32 const seed, double compressibility) BYTE* decoded = (BYTE*)compressedBuffer; ZSTD_CCtx* cctx = ZSTD_createCCtx(); - ZSTD_Sequence* seqs = malloc(srcSize * sizeof(ZSTD_Sequence)); + ZSTD_Sequence* seqs = (ZSTD_Sequence*)malloc(srcSize * sizeof(ZSTD_Sequence)); size_t seqsSize; size_t i; U32 randSeed = seed; + if (seqs == NULL) goto _output_error; assert(cctx != NULL); /* Populate src with random data */