Module: wine Branch: master Commit: add5c43fdba9cddbd34fb04a922869f2a663a61e URL: https://gitlab.winehq.org/wine/wine/-/commit/add5c43fdba9cddbd34fb04a922869f...
Author: Alex Henrie alexhenrie24@gmail.com Date: Sat Jun 17 18:46:37 2023 -0600
hhctrl: Initialize item->items to NULL in parse_index_sitemap_object (scan-build).
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)) {