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

Michael Stefaniuc mstefani at redhat.de
Sun Jan 15 17:16:26 CST 2012


---
 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;
-- 
1.7.6.5



More information about the wine-patches mailing list