Frédéric Delanoy : msi: Remove dead assignment ( Clang).

Alexandre Julliard julliard at winehq.org
Wed Jul 6 13:31:09 CDT 2011


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

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Wed Jul  6 10:34:47 2011 +0200

msi: Remove dead assignment (Clang).

---

 dlls/msi/database.c |    6 ++----
 dlls/msi/registry.c |    1 -
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/dlls/msi/database.c b/dlls/msi/database.c
index 2c45a7a..ff9ac81 100644
--- a/dlls/msi/database.c
+++ b/dlls/msi/database.c
@@ -1519,7 +1519,7 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view,
                                     LPWSTR table, MSIRECORD *rec)
 {
     LPWSTR query = NULL, clause = NULL;
-    LPWSTR ptr = NULL, val;
+    LPWSTR val;
     LPCWSTR setptr;
     DWORD size = 1, oldsize;
     LPCWSTR key;
@@ -1542,7 +1542,6 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view,
     if (!clause)
         goto done;
 
-    ptr = clause;
     count = MSI_RecordGetFieldCount(keys);
     for (i = 1; i <= count; i++)
     {
@@ -1563,8 +1562,7 @@ static LPWSTR create_diff_row_query(MSIDATABASE *merge, MSIQUERY *view,
             goto done;
         }
 
-        ptr = clause + oldsize - 1;
-        sprintfW(ptr, setptr, key, val);
+        sprintfW(clause + oldsize - 1, setptr, key, val);
         msi_free(val);
     }
 
diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c
index 353cb6d..e5d2c51 100644
--- a/dlls/msi/registry.c
+++ b/dlls/msi/registry.c
@@ -1769,7 +1769,6 @@ static UINT msi_check_product_patches(LPCWSTR prodcode, LPCWSTR usersid,
     if (res != ERROR_SUCCESS)
         goto done;
 
-    ptr = patches;
     for (ptr = patches; *ptr && r == ERROR_NO_MORE_ITEMS; ptr += lstrlenW(ptr) + 1)
     {
         if (!unsquash_guid(ptr, patch))




More information about the wine-cvs mailing list