msi: Remove a redundant NULL check before free. (Smatch)

Michael Stefaniuc mstefani at redhat.de
Mon Oct 10 17:03:35 CDT 2011


---
 dlls/msi/where.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/msi/where.c b/dlls/msi/where.c
index 2d9241f..8272301 100644
--- a/dlls/msi/where.c
+++ b/dlls/msi/where.c
@@ -919,11 +919,8 @@ static UINT WHERE_delete( struct tagMSIVIEW *view )
 
     free_reorder(wv);
 
-    if (wv->order_info)
-    {
-        msi_free(wv->order_info);
-        wv->order_info = NULL;
-    }
+    msi_free(wv->order_info);
+    wv->order_info = NULL;
 
     msiobj_release( &wv->db->hdr );
     msi_free( wv );
-- 
1.7.6.4



More information about the wine-patches mailing list