Merge branch 'master' of github.com:classilla/tenfourfox

This commit is contained in:
Cameron Kaiser 2024-05-04 17:33:00 -07:00
commit cdc8b5a989
1 changed files with 1 additions and 1 deletions

View File

@ -267,11 +267,11 @@ int VP8LHuffmanTablesAllocate(int size, HuffmanTables* huffman_tables) {
// Have 'segment' point to the first segment for now, 'root'.
HuffmanTablesSegment* const root = &huffman_tables->root;
huffman_tables->curr_segment = root;
root->next = NULL;
// Allocate root.
root->start = (HuffmanCode*)WebPSafeMalloc(size, sizeof(*root->start));
if (root->start == NULL) return 0;
root->curr_table = root->start;
root->next = NULL;
root->size = size;
return 1;
}