msxml3/tests: Remove superfluous NULL check before free (Smatch).
This commit is contained in:
parent
63bf86357e
commit
6f0c968a7b
|
@ -618,7 +618,7 @@ static void test_collection_content(void)
|
||||||
bstr = NULL;
|
bstr = NULL;
|
||||||
/* error if index is out of range */
|
/* error if index is out of range */
|
||||||
ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 3, &bstr), E_FAIL);
|
ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 3, &bstr), E_FAIL);
|
||||||
if (bstr) SysFreeString(bstr);
|
SysFreeString(bstr);
|
||||||
/* error if return pointer is NULL */
|
/* error if return pointer is NULL */
|
||||||
ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 0, NULL), E_POINTER);
|
ole_expect(IXMLDOMSchemaCollection_get_namespaceURI(cache1, 0, NULL), E_POINTER);
|
||||||
/* pointer is checked first */
|
/* pointer is checked first */
|
||||||
|
|
Loading…
Reference in New Issue