summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 11:28:25 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 11:28:25 +0000
commit35c4f32bc6ff306336ccdb46b973e8eab2d81733 (patch)
tree501912763b161182030ba00968a0d8f59f33bf70 /package
parent76855e49cfb4861538001d9b28e9ced1cd489746 (diff)
INTEGRATION: CWS ooo20031216 (1.87.14); FILE MERGED
2003/12/25 12:37:58 waratah 1.87.14.1: #i1858# correct for some uninitialised variables
Diffstat (limited to 'package')
-rw-r--r--package/source/zippackage/ZipPackage.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 5e7761895453..272923a93d27 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipPackage.cxx,v $
*
- * $Revision: 1.88 $
+ * $Revision: 1.89 $
*
- * last change: $Author: hr $ $Date: 2004-02-03 18:00:56 $
+ * last change: $Author: hr $ $Date: 2004-02-04 12:28:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -665,7 +665,8 @@ Any SAL_CALL ZipPackage::getByHierarchicalName( const OUString& aName )
return pRootFolder->getByName ( aName );
}
nOldIndex = 0;
- ZipPackageFolder * pCurrent = pRootFolder, *pPrevious;
+ ZipPackageFolder * pCurrent = pRootFolder;
+ ZipPackageFolder * pPrevious = NULL;
while ( ( nIndex = aName.indexOf('/', nOldIndex)) != -1)
{
sTemp = aName.copy (nOldIndex, nIndex - nOldIndex);
@@ -744,7 +745,8 @@ sal_Bool SAL_CALL ZipPackage::hasByHierarchicalName( const OUString& aName )
if ( pRootFolder->hasByName ( aName ) )
return sal_True;
}
- ZipPackageFolder * pCurrent = pRootFolder, *pPrevious;
+ ZipPackageFolder * pCurrent = pRootFolder;
+ ZipPackageFolder * pPrevious = NULL;
nOldIndex = 0;
while ( ( nIndex = aName.indexOf('/', nOldIndex)) != -1)
{