forked from qt-creator/qt-creator
SSH: Fix GCC 5.2.1 warning in release build
warning: 'label' may be used uninitialized in this function I know it doesn't make sense... :) Change-Id: I954ea725f7437d4b31f836134bf59b10f9fbee01 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
01b50d2fc3
commit
d5ff81e1c5
@@ -173,7 +173,7 @@ void SshKeyGenerator::generateOpenSslPublicKeyString(const KeyPtr &key)
|
||||
void SshKeyGenerator::generateOpenSslPrivateKeyString(const KeyPtr &key)
|
||||
{
|
||||
QList<BigInt> params;
|
||||
const char *label;
|
||||
const char *label = "";
|
||||
switch (m_type) {
|
||||
case Rsa: {
|
||||
const QSharedPointer<RSA_PrivateKey> rsaKey
|
||||
@@ -197,6 +197,7 @@ void SshKeyGenerator::generateOpenSslPrivateKeyString(const KeyPtr &key)
|
||||
case Ecdsa:
|
||||
params << key.dynamicCast<ECDSA_PrivateKey>()->private_value();
|
||||
label = "EC PRIVATE KEY";
|
||||
break;
|
||||
}
|
||||
|
||||
DER_Encoder encoder;
|
||||
|
Reference in New Issue
Block a user