[Libreoffice-commits] core.git: xmlsecurity/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 1 14:56:50 UTC 2020


 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 923cc749536013f4a11d96ab085c4e730e160d6d
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Apr 1 15:04:31 2020 +0100
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed Apr 1 16:56:15 2020 +0200

    Drop useless initialization immediately before reassignment
    
    Change-Id: Id3d05de26ac9078a316de49ea2a5f6af26876107
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91507
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
index d296d885e0f3..0434d0b9d2d9 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
@@ -991,12 +991,10 @@ OUString SecurityEnvironment_MSCryptImpl::getSecurityEnvironmentInformation()
 
 xmlSecKeysMngrPtr SecurityEnvironment_MSCryptImpl::createKeysManager() {
 
-    xmlSecKeysMngrPtr pKeysMngr = nullptr ;
-
     /*-
      * The following lines is based on the of xmlsec-mscrypto crypto engine
      */
-    pKeysMngr = xmlsecurity::MSCryptoAppliedKeysMngrCreate() ;
+    xmlSecKeysMngrPtr pKeysMngr = xmlsecurity::MSCryptoAppliedKeysMngrCreate() ;
     if( pKeysMngr == nullptr )
         throw uno::RuntimeException() ;
 


More information about the Libreoffice-commits mailing list