diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-05-27 09:43:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-05-27 12:57:16 +0200 |
commit | 256fccaf991cbc7d2f954c759e0ada6e2bd26c9e (patch) | |
tree | cf9c8d563fd007ac00631a6172d30fabe79c5ab1 /xmlsecurity | |
parent | 256107622c252afdce35d1c77fe70eb4e4bc57ce (diff) |
operator new doesn't return null anyway
(and assigning nullptr to a null xcert was apparently redundant)
Change-Id: I8b6120248c042adcb2f787b8db0f28c14268212d
Reviewed-on: https://gerrit.libreoffice.org/73019
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx index a5015bc87c55..7c0b4f2af489 100644 --- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx @@ -797,11 +797,7 @@ X509Certificate_NssImpl* NssCertToXCert( CERTCertificate* cert ) if( cert != nullptr ) { xcert = new X509Certificate_NssImpl() ; - if( xcert == nullptr ) { - xcert = nullptr ; - } else { - xcert->setCert( cert ) ; - } + xcert->setCert( cert ) ; } else { xcert = nullptr ; } |