diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-19 15:15:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-19 18:10:14 +0000 |
commit | e2ed122ff34a0fe36e2925dd30fe217606069984 (patch) | |
tree | f41467257b17ef6b9034e7c773d769ec4dbc725a /forms | |
parent | c4decc56d2c4b7f4287ea382c7244cd0da1b5c24 (diff) |
coverity#1343619 Unchecked return value
Change-Id: Icc27e275d376b3ff66d0e44eb23e62f57f9cc470
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/submission/submission_get.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx index a120e95e4e08..be8424cef9a6 100644 --- a/forms/source/xforms/submission/submission_get.cxx +++ b/forms/source/xforms/submission/submission_get.cxx @@ -88,7 +88,8 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const css::uno::Reference< OUString aQueryURL = OStringToOUString(aUTF8QueryURL.makeStringAndClear(), RTL_TEXTENCODING_UTF8); ucbhelper::Content aContent(aQueryURL, aEnvironment, m_xContext); css::uno::Reference< XOutputStream > aPipe( css::io::Pipe::create(m_xContext), UNO_QUERY_THROW ); - aContent.openStream(aPipe); + if (!aContent.openStream(aPipe)) + return UNKNOWN_ERROR; // get reply try { m_aResultStream = aContent.openStream(); |