msxml3/tests: Merge two adjacent if blocks with identical condition (PVS-Studio)

Michael Stefaniuc mstefani at redhat.de
Fri Mar 6 03:23:15 CST 2015


---
 dlls/msxml3/tests/domdoc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index e669de4..f7f57ac 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -2235,10 +2235,9 @@ static void test_domnode( void )
         ok( tag != NULL, "tag was null\n");
         ok( !lstrcmpW( tag, szSSearch ), "incorrect tag name\n");
         SysFreeString( tag );
-    }
 
-    if (element)
         IXMLDOMElement_Release( element );
+    }
     ok(IXMLDOMDocument_Release( doc ) == 0, "document is not destroyed\n");
 
     free_bstrs();
-- 
1.9.3



More information about the wine-patches mailing list