[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/libkleo/tests
From:       Laurent Montel <montel () kde ! org>
Date:       2007-07-27 16:58:49
Message-ID: 1185555529.306331.22296.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 693298 by mlaurent:

Protocol can be null
=> fix crash


 M  +5 -1      test_keygen.cpp  


--- trunk/KDE/kdepim/libkleo/tests/test_keygen.cpp #693297:693298
@@ -111,7 +111,11 @@
       params += keyParams[i] + ( ": " + mLineEdits[i]->text().trimmed() ) + '\n';
   params += "</GnupgKeyParms>\n";
 
-   const Kleo::CryptoBackend::Protocol * proto = !strcmp( protocol, "openpgp" ) ? \
Kleo::CryptoBackendFactory::instance()->openpgp() : \
Kleo::CryptoBackendFactory::instance()->smime() ; +  const \
Kleo::CryptoBackend::Protocol * proto = 0; +  if(protocol)
+  {
+     proto = !strcmp( protocol, "openpgp" ) ? \
Kleo::CryptoBackendFactory::instance()->openpgp() : \
Kleo::CryptoBackendFactory::instance()->smime() ; +  }
   if ( !proto )
     proto = Kleo::CryptoBackendFactory::instance()->smime();
   assert( proto );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic