Michael Stefaniuc : mshtml: Remove superfluous NULL pointer check before free (Smatch).

Alexandre Julliard julliard at winehq.org
Mon Jan 16 13:01:29 CST 2012


Module: wine
Branch: master
Commit: 51f77f4983aea27db77dab58f30f83384ebb2d23
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=51f77f4983aea27db77dab58f30f83384ebb2d23

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Jan 16 00:16:26 2012 +0100

mshtml: Remove superfluous NULL pointer check before free (Smatch).

---

 dlls/mshtml/persist.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/mshtml/persist.c b/dlls/mshtml/persist.c
index 4167659..e66cbcb 100644
--- a/dlls/mshtml/persist.c
+++ b/dlls/mshtml/persist.c
@@ -77,10 +77,8 @@ void set_current_uri(HTMLWindow *window, IUri *uri)
         window->uri = NULL;
     }
 
-    if(window->url) {
-        SysFreeString(window->url);
-        window->url = NULL;
-    }
+    SysFreeString(window->url);
+    window->url = NULL;
 
     if(!uri)
         return;




More information about the wine-cvs mailing list