summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-09 16:42:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-09 17:13:43 +0000
commit53c84ea21e4e709f3b40d5f56ce764f0c4ce1fc7 (patch)
treefca1df4582e5ad46eb521f76426f259ba7d716a4 /framework
parentf2fb3c464716e5f14e5b966592adb5b6714c0566 (diff)
coverity#1169804 Unchecked return value
Change-Id: I32fb858ab78a741a194ae11a3147645d786c9afe
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/autorecovery.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index 95362d7e2499..faf8e86cbb57 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -4126,7 +4126,9 @@ AutoRecovery::EFailureSafeResult AutoRecovery::implts_copyFile(const OUString& s
try
{
- ::ucbhelper::Content::create(sSource, xEnvironment, m_xContext, aSourceContent);
+ bool bSuccess = ::ucbhelper::Content::create(sSource, xEnvironment, m_xContext, aSourceContent);
+ if (!bSuccess)
+ return AutoRecovery::E_ORIGINAL_FILE_MISSING;
aTargetContent.transferContent(aSourceContent, ::ucbhelper::InsertOperation_COPY, sTargetName, nNameClash);
}
catch(const css::uno::Exception&)