Module: wine Branch: master Commit: 51f77f4983aea27db77dab58f30f83384ebb2d23 URL: http://source.winehq.org/git/wine.git/?a=commit;h=51f77f4983aea27db77dab58f3...
Author: Michael Stefaniuc mstefani@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;