Commit add5c43f authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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.
parent 47e044b8
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment