summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ftp/ftpdirp.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-09-08 16:04:06 +0000
committerRüdiger Timm <rt@openoffice.org>2004-09-08 16:04:06 +0000
commit0331e015ece32c994276fcfc6ed3c2ff120f3b1d (patch)
treecb18a4439f65fdd4b691e552238cd5cf37aa6d58 /ucb/source/ucp/ftp/ftpdirp.cxx
parent8d6e738f137f01cbff33a23e2af6208da47a945a (diff)
INTEGRATION: CWS ooo20040704 (1.2.164); FILE MERGED
2004/06/30 13:42:00 waratah 1.2.164.1: #i30874# Add initial values to potentially uninitialised values
Diffstat (limited to 'ucb/source/ucp/ftp/ftpdirp.cxx')
-rw-r--r--ucb/source/ucp/ftp/ftpdirp.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/ucb/source/ucp/ftp/ftpdirp.cxx b/ucb/source/ucp/ftp/ftpdirp.cxx
index 6ff365e05e61..66d5ba73ad2c 100644
--- a/ucb/source/ucp/ftp/ftpdirp.cxx
+++ b/ucb/source/ucp/ftp/ftpdirp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ftpdirp.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: abi $ $Date: 2002-10-17 16:28:21 $
+ * last change: $Author: rt $ $Date: 2004-09-08 17:04:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -142,7 +142,7 @@ sal_Bool FTPDirectoryParser::parseDOS (
STATE_ERROR
};
- int nDigits;
+ int nDigits = 0;
enum StateType eState = STATE_INIT_LWS;
for (const sal_Char *p = pBuffer;
eState != STATE_ERROR && *p;
@@ -917,7 +917,8 @@ sal_Bool FTPDirectoryParser::parseUNIX (
FOUND_NONE, FOUND_SIZE, FOUND_MONTH, FOUND_DAY, FOUND_YEAR_TIME
};
- const sal_Char *pDayStart, *pDayEnd;
+ const sal_Char *pDayStart = 0;
+ const sal_Char *pDayEnd = 0;
Mode eMode;
for (eMode = FOUND_NONE; *p1 && eMode != FOUND_YEAR_TIME; p1 = p2 + 1)
{