msi: Remove dead assignment (Clang).

This commit is contained in:
Frédéric Delanoy 2011-07-06 10:34:47 +02:00 committed by Alexandre Julliard
parent 09eec46daf
commit 99e422c975
2 changed files with 2 additions and 5 deletions

View file

@ -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);
}

View file

@ -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))