summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-03-30 15:28:43 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-03-30 15:28:43 +0000
commit634aa31e0b7d86d22726f72df06f2b3f41884c15 (patch)
treec5dfa53653c505dea16bbd3a7d3b5c4728cf3245 /sal/osl/unx/file.cxx
parent28b126b060c1f04af1e75deadb8ae9322af83982 (diff)
INTEGRATION: CWS sb14 (1.2.18); FILE MERGED
2004/03/17 08:54:28 sb 1.2.18.2: RESYNC: (1.2-1.3); FILE MERGED 2004/03/11 14:41:31 sb 1.2.18.1: #i21150# rtl_string2UString and OUString::OUString(sal_Char const *, sal_Int32, rtl_TextEncoding, sal_uInt32) handle out-of-memory conditions.
Diffstat (limited to 'sal/osl/unx/file.cxx')
-rw-r--r--sal/osl/unx/file.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index a8902ff1d..dec839301 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: file.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2004-03-09 11:18:59 $
+ * last change: $Author: rt $ $Date: 2004-03-30 16:28:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -443,6 +443,7 @@ oslFileError SAL_CALL osl_getNextDirectoryItem(oslDirectory Directory, oslDirect
/* convert file name to unicode */
rtl_string2UString( &ustrFileName, pEntry->d_name, strlen( pEntry->d_name ),
osl_getThreadTextEncoding(), OSTRING_TO_OUSTRING_CVTFLAGS );
+ OSL_ASSERT(ustrFileName != 0);
osl_systemPathMakeAbsolutePath(pDirImpl->ustrPath, ustrFileName, &ustrFilePath);
@@ -1454,6 +1455,7 @@ static oslFileError osl_psz_getVolumeInformation (
rtl_str_getLength(__OSL_STATFS_TYPENAME(sfs)),
osl_getThreadTextEncoding(),
OUSTRING_TO_OSTRING_CVTFLAGS);
+ OSL_ASSERT(pInfo->ustrFileSystemName != 0);
pInfo->uValidFields |= osl_VolumeInfo_Mask_FileSystemName;
}
@@ -2068,6 +2070,7 @@ static rtl_uString* oslMakeUStrFromPsz(const sal_Char* pszStr, rtl_uString** ust
rtl_str_getLength( pszStr ),
osl_getThreadTextEncoding(),
OUSTRING_TO_OSTRING_CVTFLAGS );
+ OSL_ASSERT(*ustrValid != 0);
return *ustrValid;
}