msi: Remove dead assignment (Clang)

Frédéric Delanoy frederic.delanoy at gmail.com
Wed Jul 6 03:34:47 CDT 2011


---
In database.c, ptr is set then used at the end of the for loop

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

diff --git a/dlls/msi/database.c b/dlls/msi/database.c
index 2c45a7a..d107f4c 100644
--- a/dlls/msi/database.c
+++ b/dlls/msi/database.c
@@ -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++)
     {
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))
-- 
1.7.6




More information about the wine-patches mailing list