summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-24 15:44:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-24 16:11:01 +0100
commitb2011604f881936584756d4eada4073c66f15f8a (patch)
treee681d0f57e097422845b3cfb2ef1c62a768bf11b /sal
parent6bd53aeb7ab9beec736440e3f372f9954a680f9d (diff)
coverity#982175 Unchecked return value from library
Change-Id: I7acba38a00dfc1101e6217bff098ef7d6f032497
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/osl/file/osl_File.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index c46f2fec2294..cbe905207cbe 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -415,7 +415,8 @@ inline void changeFileMode( ::rtl::OUString & filepath, sal_Int32 mode )
if ( isURL( filepath ) )
::osl::FileBase::getSystemPathFromFileURL( filepath, aUStr );
aString = ::rtl::OUStringToOString( aUStr, RTL_TEXTENCODING_ASCII_US );
- chmod( aString.getStr(), mode );
+ int ret = chmod( aString.getStr(), mode );
+ CPPUNIT_ASSERT(ret == 0);
}
#else //Windows version
inline void changeFileMode( ::rtl::OUString & filepath, sal_Int32 mode )