Commit f900879d authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

xmllite: Hr was uninitialized in error path (Coverity).

parent adc349c3
......@@ -547,8 +547,10 @@ static HRESULT reader_push_element(xmlreader *reader, strval *prefix, strval *lo
}
element = reader_alloc_zero(reader, sizeof(*element));
if (!element)
if (!element) {
hr = E_OUTOFMEMORY;
goto failed;
}
if ((hr = reader_strvaldup(reader, prefix, &element->prefix)) != S_OK ||
(hr = reader_strvaldup(reader, localname, &element->localname)) != S_OK ||
......
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