diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-06-13 10:16:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-15 14:06:31 +0200 |
commit | dcf6abfcdf3f4b7aec5796c9f6c806889328135f (patch) | |
tree | f0d7081b5454bbe58318ec87dcc6b5465ed16965 /setup_native | |
parent | 8f60697cf8e5227d503738e3c186433ac5dacfc8 (diff) |
cppcheck:unreadVariable
Change-Id: I03981ceba67280e8ed98a9add7f24b3bd958d522
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/source/win32/wintools/makecab/makecab.c | 1 | ||||
-rw-r--r-- | setup_native/source/win32/wintools/msidb/msidb.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/setup_native/source/win32/wintools/makecab/makecab.c b/setup_native/source/win32/wintools/makecab/makecab.c index 91cfa3891b46..4acdc9fc315d 100644 --- a/setup_native/source/win32/wintools/makecab/makecab.c +++ b/setup_native/source/win32/wintools/makecab/makecab.c @@ -295,7 +295,6 @@ int main(int argc, char *argv[]) CCAB ddfVars; DDFSRCFILE *srcList = NULL; DDFSRCFILE *srcListCurr = NULL; - HFCI fci = NULL; char * cmd = NULL; unsigned int cmdSize = 0; diff --git a/setup_native/source/win32/wintools/msidb/msidb.c b/setup_native/source/win32/wintools/msidb/msidb.c index 2ad33478a2f9..ea1c5ba6c011 100644 --- a/setup_native/source/win32/wintools/msidb/msidb.c +++ b/setup_native/source/win32/wintools/msidb/msidb.c @@ -126,7 +126,7 @@ static BOOL msidbExportStorage(LPCWSTR dbfile, LPCWSTR wdir, LPWSTR storageName) r = MsiViewFetch(view, &rec); if (r != ERROR_SUCCESS) return FALSE; - if ((r = MsiRecordReadStream(rec, 2, 0, &dataLen)) != ERROR_SUCCESS) + if (MsiRecordReadStream(rec, 2, 0, &dataLen) != ERROR_SUCCESS) { return FALSE; } |