fixed some warnings and minor issues detected by clang-analyzer

This commit is contained in:
Guenter Obiltschnig
2016-09-13 11:37:12 +02:00
parent 153b4a7232
commit 7c37f18f84
8 changed files with 17 additions and 15 deletions

View File

@@ -43,7 +43,7 @@ void ConsoleCertificateHandler::onInvalidCertificate(const void*, VerificationEr
std::cout << "The certificate yielded the error: " << errorCert.errorMessage() << "\n\n";
std::cout << "The error occurred in the certificate chain at position " << errorCert.errorDepth() << "\n";
std::cout << "Accept the certificate (y,n)? ";
char c;
char c = 0;
std::cin >> c;
if (c == 'y' || c == 'Y')
errorCert.setIgnoreError(true);