From 1949a8c24576c642dc34ec99f197dd1a9b4359e9 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 24 Sep 2008 23:04:34 +0200 Subject: [PATCH] msxml3/tests: Remove redundant NULL check before SysFreeString (Smatch). --- 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 c927274340f..29bebb931c2 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);