From 432399472fb780b1224f7e3f0617b1d590557c13 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Fri, 11 May 2012 01:45:06 -0700 Subject: [PATCH] add assert(tokens) Change-Id: I952a5cd15ff0a80cff349293e6403357cbc7bd8d --- src/utils/huffman_encode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/huffman_encode.c b/src/utils/huffman_encode.c index aa3c2a04..905e0022 100644 --- a/src/utils/huffman_encode.c +++ b/src/utils/huffman_encode.c @@ -242,6 +242,7 @@ int VP8LCreateCompressedHuffmanTree(const uint8_t* const depth, HuffmanTreeToken* const ending_token = tokens + max_tokens; int prev_value = 8; // 8 is the initial value for rle. int i = 0; + assert(tokens != NULL); while (i < depth_size) { const int value = depth[i]; int k = i + 1;