]> granicus.if.org Git - graphviz/commit
BinaryHeap: use 'calloc' instead of 'malloc' when allocating arrays
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 6 Sep 2021 23:08:58 +0000 (16:08 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 9 Sep 2021 00:06:51 +0000 (17:06 -0700)
commit3775579c8dd763a8f732d4bf4f7c7d2be42f4a25
tree7b16edba55fa3cffa6454c0d2d3379975826b9fa
parent8c803ed3c9ca20b47d5f770b0cd8bc6b4add3e4c
BinaryHeap: use 'calloc' instead of 'malloc' when allocating arrays

There is not much we can do about the `realloc` calls, but we can at least do
initial allocation in a less error prone way.
lib/sparse/BinaryHeap.c
lib/sparse/general.h