aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert/x509/x509self.cpp
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2016-01-04 21:35:24 +0100
committerDaniel Neus <[email protected]>2016-01-04 21:35:24 +0100
commit443a5c25db02aa7ac505fdc3b0fa60c1d584a5f1 (patch)
tree6683223da4ea9917914c0eb9d7d1110cc86ac6f6 /src/lib/cert/x509/x509self.cpp
parent9d3ad9a0f44a9321185ed9f221c828dac81b9f0c (diff)
String comparision fixes
fix PVS-Studio perfomance warnings
Diffstat (limited to 'src/lib/cert/x509/x509self.cpp')
-rw-r--r--src/lib/cert/x509/x509self.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cert/x509/x509self.cpp b/src/lib/cert/x509/x509self.cpp
index 2f2f6a59f..7d1c01c37 100644
--- a/src/lib/cert/x509/x509self.cpp
+++ b/src/lib/cert/x509/x509self.cpp
@@ -126,7 +126,7 @@ PKCS10_Request create_cert_req(const X509_Cert_Options& opts,
.raw_bytes(pub_key)
.start_explicit(0);
- if(opts.challenge != "")
+ if(!opts.challenge.empty())
{
ASN1_String challenge(opts.challenge, DIRECTORY_STRING);