fixed some warnings and minor issues detected by clang-analyzer

Conflicts:
	Data/src/RecordSet.cpp
This commit is contained in:
Guenter Obiltschnig
2016-09-13 11:37:12 +02:00
parent fbbf197fd2
commit ae3c4a4ba3
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);