From 9c0d148dd536f5db39ac09747f7780181a7881a6 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 24 Sep 2008 23:04:20 +0200 Subject: [PATCH] jscript: Remove redundant NULL check before SysFreeString (Smatch). --- dlls/jscript/engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 8f3ab02c3e0..a3e0fc1990e 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -1930,9 +1930,9 @@ static HRESULT add_eval(exec_ctx_t *ctx, VARIANT *lval, VARIANT *rval, jsexcept_ memcpy(V_BSTR(retv)+len1, rstr, (len2+1)*sizeof(WCHAR)); } - if(lstr && V_VT(&l) != VT_BSTR) + if(V_VT(&l) != VT_BSTR) SysFreeString(lstr); - if(rstr && V_VT(&r) != VT_BSTR) + if(V_VT(&r) != VT_BSTR) SysFreeString(rstr); }else { VARIANT nl, nr;