Michael Stefaniuc : msxml3/tests: Remove redundant NULL check before SysFreeString (Smatch).

Alexandre Julliard julliard at winehq.org
Thu Sep 25 07:13:30 CDT 2008


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Sep 24 23:04:34 2008 +0200

msxml3/tests: Remove redundant NULL check before SysFreeString (Smatch).

---

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

diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index c927274..29bebb9 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -1565,8 +1565,7 @@ static void test_getElementsByTagName(void)
 
         r = IDispatchEx_GetMemberName(dispex, dispid, &sName);
         ok(r == E_NOTIMPL, "expected E_NOTIMPL got %08x\n", r);
-        if(sName)
-            SysFreeString(sName);
+        SysFreeString(sName);
 
         r = IDispatchEx_GetNextDispID(dispex, fdexEnumDefault, DISPID_XMLDOM_NODELIST_RESET, &dispid);
         ok(r == E_NOTIMPL, "expected E_NOTIMPL got %08x\n", r);




More information about the wine-cvs mailing list