mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Fix clang-tidy readability-isolate-declaration warnings
I missed one of these in review so a machine is probably better at catching them. I fixed the existing instances which where largely in code which look dated. Where possible I slightly reorganized the code so we do not have to leave values uninitialized, but did not touch up anything else.
This commit is contained in:
parent
c725311d07
commit
627c3ad726
32 changed files with 142 additions and 81 deletions
|
@ -45,8 +45,11 @@ void Entropy::Finalize() {
|
|||
if ( ! file_entropy )
|
||||
return;
|
||||
|
||||
double montepi, scc, ent, mean, chisq;
|
||||
montepi = scc = ent = mean = chisq = 0.0;
|
||||
double montepi = 0;
|
||||
double scc = 0;
|
||||
double ent = 0;
|
||||
double mean = 0;
|
||||
double chisq = 0;
|
||||
entropy->Get(&ent, &chisq, &mean, &montepi, &scc);
|
||||
|
||||
static auto entropy_test_result = id::find_type<RecordType>("entropy_test_result");
|
||||
|
|
|
@ -392,7 +392,8 @@ void OCSP::ParseResponse(OCSP_RESPONSE* resp) {
|
|||
const ASN1_GENERALIZEDTIME* produced_at = nullptr;
|
||||
const STACK_OF(X509)* certs = nullptr;
|
||||
|
||||
int resp_count, num_ext = 0;
|
||||
int resp_count;
|
||||
int num_ext = 0;
|
||||
VectorVal* certs_vector = nullptr;
|
||||
int len = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue