Initialize pointer before use.

This commit is contained in:
Klaas Freitag 2012-10-02 17:42:37 +02:00
parent 732ed57360
commit 0007579ab8

View file

@ -318,6 +318,9 @@ void Application::slotSSLFailed( QNetworkReply *reply, QList<QSslError> errors )
QString configHandle = ownCloudInfo::instance()->configHandle(reply);
// make the ssl dialog aware of the custom config. It loads known certs.
if( ! _sslErrorDialog ) {
_sslErrorDialog = new SslErrorDialog;
}
_sslErrorDialog->setCustomConfigHandle( configHandle );
if( _sslErrorDialog->setErrorList( errors ) ) {