Kaydet (Commit) 256fccaf authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 25610762
...@@ -797,11 +797,7 @@ X509Certificate_NssImpl* NssCertToXCert( CERTCertificate* cert ) ...@@ -797,11 +797,7 @@ X509Certificate_NssImpl* NssCertToXCert( CERTCertificate* cert )
if( cert != nullptr ) { if( cert != nullptr ) {
xcert = new X509Certificate_NssImpl() ; xcert = new X509Certificate_NssImpl() ;
if( xcert == nullptr ) { xcert->setCert( cert ) ;
xcert = nullptr ;
} else {
xcert->setCert( cert ) ;
}
} else { } else {
xcert = nullptr ; xcert = nullptr ;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment