From: Alex Henrie <alexhenrie24(a)gmail.com> Initializing to NULL makes it more clear that the initial value is only used as a parameter to realloc. --- dlls/hhctrl.ocx/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/hhctrl.ocx/index.c b/dlls/hhctrl.ocx/index.c index 113daa9efc9..231434aa10f 100644 --- a/dlls/hhctrl.ocx/index.c +++ b/dlls/hhctrl.ocx/index.c @@ -129,7 +129,7 @@ static IndexItem *parse_index_sitemap_object(HHInfo *info, stream_t *stream) item = calloc(1, sizeof(IndexItem)); item->nItems = 0; - item->items = calloc(2, sizeof(void *)); + item->items = NULL; item->itemFlags = 0x11; while(next_node(stream, &node)) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/3089