From 443a5c25db02aa7ac505fdc3b0fa60c1d584a5f1 Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Mon, 4 Jan 2016 21:35:24 +0100 Subject: String comparision fixes fix PVS-Studio perfomance warnings --- src/lib/tls/tls_ciphersuite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/tls/tls_ciphersuite.h') diff --git a/src/lib/tls/tls_ciphersuite.h b/src/lib/tls/tls_ciphersuite.h index 26faca11b..6dcf3dcc2 100644 --- a/src/lib/tls/tls_ciphersuite.h +++ b/src/lib/tls/tls_ciphersuite.h @@ -91,7 +91,7 @@ class BOTAN_DLL Ciphersuite const std::string& prf_algo() const { - return (m_prf_algo != "") ? m_prf_algo : m_mac_algo; + return (!m_prf_algo.empty()) ? m_prf_algo : m_mac_algo; } /** -- cgit v1.2.3