From b2011604f881936584756d4eada4073c66f15f8a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 24 May 2014 15:44:51 +0100 Subject: coverity#982175 Unchecked return value from library Change-Id: I7acba38a00dfc1101e6217bff098ef7d6f032497 --- sal/qa/osl/file/osl_File.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sal') 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 ) -- cgit