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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 6 06:27:29 CST 2015


Module: wine
Branch: master
Commit: 7c4d45c00b362913501ec081fbd06b1f94e18117
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7c4d45c00b362913501ec081fbd06b1f94e18117

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Mar  6 10:23:15 2015 +0100

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

---

 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();




More information about the wine-cvs mailing list