Module: wine Branch: master Commit: 99829f1d639bdf4d732bc8c938064f7ab0b2a45e URL: http://source.winehq.org/git/wine.git/?a=commit;h=99829f1d639bdf4d732bc8c938...
Author: Michael Stefaniuc mstefani@redhat.de Date: Tue Sep 23 23:03:34 2008 +0200
oleaut32/tests: Remove redundant NULL check before SysFreeString (Smatch).
---
dlls/oleaut32/tests/varformat.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/tests/varformat.c b/dlls/oleaut32/tests/varformat.c index 47fb8e6..00551e7 100644 --- a/dlls/oleaut32/tests/varformat.c +++ b/dlls/oleaut32/tests/varformat.c @@ -67,7 +67,7 @@ static inline int strcmpW( const WCHAR *str1, const WCHAR *str2 ) if (hres == S_OK) { \ ok(str && strcmpW(str,szResult1) == 0, \ "VarFormatNumber (vt %d): string different\n", vt); \ - if (str) SysFreeString(str); \ + SysFreeString(str); \ }
static void test_VarFormatNumber(void) @@ -137,7 +137,7 @@ static const char *szVarFmtFail = "VT %d|0x%04x Format %s: expected 0x%08x, '%s' ok(hres == ret && (FAILED(ret) || !strcmp(buff, str)), \ szVarFmtFail, \ (vt)&VT_TYPEMASK,(vt)&~VT_TYPEMASK,fmt?fmt:"<null>",ret,str,hres,buff); \ - if (out) SysFreeString(out); \ + SysFreeString(out); \ } while(0)
typedef struct tagFMTRES