summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgstrms.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 11:31:47 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-04 11:31:47 +0000
commit18b6c95bbbc325b9693c3cb02679091027767fa7 (patch)
tree0839184871d3c3fde142769c8bc86f5ca697998b /sot/source/sdstor/stgstrms.cxx
parent6b61f2542b258aafb867c95436840154906693f7 (diff)
INTEGRATION: CWS ooo20031216 (1.5.48); FILE MERGED
2003/12/24 11:44:22 waratah 1.5.48.1: #i1858# correct potential unitialised values
Diffstat (limited to 'sot/source/sdstor/stgstrms.cxx')
-rw-r--r--sot/source/sdstor/stgstrms.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index cfbd91790ba3..033eb040eeca 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stgstrms.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: vg $ $Date: 2003-05-13 12:30:13 $
+ * last change: $Author: hr $ $Date: 2004-02-04 12:31:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -139,7 +139,7 @@ INT32 StgFAT::FindBlock( INT32& nPgs )
INT32 nTmpStart = STG_EOF, nTmpLen = 0;
INT32 nPages = rStrm.GetSize() >> 2;
BOOL bFound = FALSE;
- StgPage* pPg;
+ StgPage* pPg = NULL;
short nEntry = 0;
for( INT32 i = 0; i < nPages; i++, nEntry++ )
{
@@ -247,7 +247,8 @@ INT32 StgFAT::AllocPages( INT32 nBgn, INT32 nPgs )
{
INT32 nOrig = nBgn;
INT32 nLast = nBgn;
- INT32 nBegin, nAlloc;
+ INT32 nBegin = STG_EOF;
+ INT32 nAlloc;
INT32 nPages = rStrm.GetSize() >> 2;
short nPasses = 0;
// allow for two passes