diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 14:05:50 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 15:43:44 +0200 |
commit | db34ab81ae170cf9ec1c4421e0f05d65747caa3e (patch) | |
tree | da58c5629aec32df3e7237459f3fab8fc47f261a /package | |
parent | 93fff4ba2ff6d70473ed81f53c438a1488e5c2c2 (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: I823aab2038eb08f4061e353b5fafc12b8e60e671
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index 445b0df44435..c0d9666d9c2d 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -496,12 +496,12 @@ void ZipPackage::getZipFileContents() ZipPackageStream *pPkgStream; ZipPackageFolder *pPkgFolder, *pCurrent; OUString sTemp, sDirName; - sal_Int32 nOldIndex, nIndex, nStreamIndex; + sal_Int32 nOldIndex, nStreamIndex; FolderHash::iterator aIter; while (xEnum->hasMoreElements()) { - nIndex = nOldIndex = 0; + nOldIndex = 0; pCurrent = m_pRootFolder; const ZipEntry & rEntry = *xEnum->nextElement(); OUString rName = rEntry.sPath; @@ -524,6 +524,7 @@ void ZipPackage::getZipFileContents() if ( pCurrent == m_pRootFolder ) { + sal_Int32 nIndex; while ( ( nIndex = rName.indexOf( '/', nOldIndex ) ) != -1 ) { sTemp = rName.copy ( nOldIndex, nIndex - nOldIndex ); |