mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
HistoHeapInit: correct positions allocation size
Change-Id: I1879fd48bee3aea6f0504926d7030b504dd9be07
This commit is contained in:
parent
45d9635fd3
commit
35ad48b848
@ -586,7 +586,7 @@ static int HistoHeapInit(HistoHeap* const histo_heap, const int max_index) {
|
||||
histo_heap->heap = WebPSafeMalloc(max_index * max_index,
|
||||
sizeof(*histo_heap->heap));
|
||||
histo_heap->positions = WebPSafeMalloc(max_index * max_index,
|
||||
sizeof(*histo_heap->heap));
|
||||
sizeof(*histo_heap->positions));
|
||||
return histo_heap->heap != NULL && histo_heap->positions != NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user