Merge "add assert(tokens)"

This commit is contained in:
Pascal Massimino 2012-05-11 01:46:45 -07:00 committed by Gerrit Code Review
commit c8f24165b7

View File

@ -242,6 +242,7 @@ int VP8LCreateCompressedHuffmanTree(const uint8_t* const depth,
HuffmanTreeToken* const ending_token = tokens + max_tokens; HuffmanTreeToken* const ending_token = tokens + max_tokens;
int prev_value = 8; // 8 is the initial value for rle. int prev_value = 8; // 8 is the initial value for rle.
int i = 0; int i = 0;
assert(tokens != NULL);
while (i < depth_size) { while (i < depth_size) {
const int value = depth[i]; const int value = depth[i];
int k = i + 1; int k = i + 1;