diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-11-17 13:26:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-11-17 13:27:08 +0000 |
commit | 447a65db6b7ea2ed580f2fdd364ac6084cc282be (patch) | |
tree | 91f1ad3bec1dca7f46f566ed1c0c22009ea29659 /xmlsecurity | |
parent | coverity#1394372 Division or modulo by zero (diff) | |
download | core-447a65db6b7ea2ed580f2fdd364ac6084cc282be.tar.gz core-447a65db6b7ea2ed580f2fdd364ac6084cc282be.zip |
coverity#1394292 Unchecked return value
Change-Id: I90db6e3c69a6dc90ce1df0dbb5b9d7a81cd1bbea
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturemanager.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx index f10c27779435..f9b435502e6b 100644 --- a/xmlsecurity/source/helper/documentsignaturemanager.cxx +++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx @@ -63,8 +63,11 @@ bool DocumentSignatureManager::init() PDFSignatureHelper& DocumentSignatureManager::getPDFSignatureHelper() { + bool bInit = true; if (!mxSecurityContext.is()) - init(); + bInit = init(); + + SAL_WARN_IF(!bInit, "xmlsecurity.comp", "Error initializing security context!"); if (!mpPDFSignatureHelper) mpPDFSignatureHelper.reset(new PDFSignatureHelper(mxContext)); |