diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2010-01-22 08:34:57 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2010-01-22 08:34:57 +0000 |
commit | f3448fafc37127cf89025f6293e8b18b8909b99e (patch) | |
tree | 1c531bff5619672ef0cda63cbc548f3c215c309a /sal | |
parent | f97686f0876e965d0e600c1d29758c21057dffe4 (diff) |
#i108559# copy empty file correctly
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/file_misc.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx index b1a3f39ddf81..7d797c2be226 100644 --- a/sal/osl/unx/file_misc.cxx +++ b/sal/osl/unx/file_misc.cxx @@ -1039,7 +1039,8 @@ static int oslDoCopyFile(const sal_Char* pszSourceFileName, const sal_Char* pszD || -1 == lseek( SourceFileFD, 0, SEEK_SET ) ) { nRet = errno; - (void) close( SourceFileFD ); + close( SourceFileFD ); + close( DestFileFD ); return nRet; } |