Module: wine Branch: master Commit: 9c0d148dd536f5db39ac09747f7780181a7881a6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9c0d148dd536f5db39ac09747f...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Sep 24 23:04:20 2008 +0200
jscript: Remove redundant NULL check before SysFreeString (Smatch).
---
dlls/jscript/engine.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 8f3ab02..a3e0fc1 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;