diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2019-08-19 11:57:02 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2019-08-26 09:50:04 +0000 |
commit | dd7b09e49c33b45d78fd36294366be34d1ce7c72 (patch) | |
tree | 8b06ef3f8108f90303d9b28c15a762cf24c6d094 /ui | |
parent | 6d2ea2f4bb2bb3a0bec20c7256d7a1e3f4fe4930 (diff) |
Qt (zip_helper): Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning
found by Clang
Change-Id: Ib16fc6c0783adda8485056d5e20973cf078e7d7e
Reviewed-on: https://code.wireshark.org/review/34321
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/utils/wireshark_zip_helper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/utils/wireshark_zip_helper.cpp b/ui/qt/utils/wireshark_zip_helper.cpp index f2035dda53..3595215843 100644 --- a/ui/qt/utils/wireshark_zip_helper.cpp +++ b/ui/qt/utils/wireshark_zip_helper.cpp @@ -45,7 +45,8 @@ bool WireSharkZipHelper::unzip(QString zipFile, QString directory, bool (*fileCh return false; unz_global_info64 gi; - int err = unzGetGlobalInfo64(uf,&gi); + int err; + unzGetGlobalInfo64(uf,&gi); unsigned int nmbr = static_cast<unsigned int>(gi.number_entry); if (nmbr <= 0) return false; |