Skip to content

Commit e0a8fda

Browse files
committed
Satisfy clang-tidy
1 parent 8f8fc1a commit e0a8fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool-openssl/x509.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static bool handleSubject(X509 *x509, BIO *output_bio) {
132132
}
133133

134134
static bool handleFingerprint(X509 *x509, BIO *output_bio) {
135-
unsigned int out_len;
135+
unsigned int out_len = 0;
136136
unsigned char md[EVP_MAX_MD_SIZE];
137137
const EVP_MD *digest = EVP_sha1();
138138

@@ -171,7 +171,7 @@ static bool handleCheckend(X509 *x509, BIO *output_bio,
171171
bssl::UniquePtr<ASN1_TIME> current_time(
172172
ASN1_TIME_set(nullptr, std::time(nullptr)));
173173
ASN1_TIME *end_time = X509_getm_notAfter(x509);
174-
int days_left, seconds_left;
174+
int days_left = 0, seconds_left = 0;
175175

176176
if (!ASN1_TIME_diff(&days_left, &seconds_left, current_time.get(),
177177
end_time)) {

0 commit comments

Comments
 (0)