Nikolay Sivov : mshtml/tests: Remove null check after dereference ( Coverity).

Alexandre Julliard julliard at winehq.org
Fri Jan 5 14:02:03 CST 2018


Module: wine
Branch: master
Commit: 53b73055b73fd107b8f479ae509a7f8155c516f0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=53b73055b73fd107b8f479ae509a7f8155c516f0

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Jan  5 14:38:57 2018 +0300

mshtml/tests: Remove null check after dereference (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/tests/events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mshtml/tests/events.c b/dlls/mshtml/tests/events.c
index 908e647..685bfc1 100644
--- a/dlls/mshtml/tests/events.c
+++ b/dlls/mshtml/tests/events.c
@@ -2578,7 +2578,7 @@ static IHTMLWindow2 *get_iframe_window(IHTMLIFrameElement *iframe)
     ok(hres == S_OK, "get_contentWindow failed: %08x\n", hres);
     ok(window != NULL, "window == NULL\n");
 
-    if(base) IHTMLFrameBase2_Release(base);
+    IHTMLFrameBase2_Release(base);
     return window;
 }
 




More information about the wine-cvs mailing list