From f70ecccc34cbcd02c057d9569b042fb37b3e16d7 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Tue, 14 Apr 2020 15:29:00 -0700 Subject: [PATCH] Fix a confusing variable name shadowing --- CHANGES | 4 ++++ VERSION | 2 +- src/Val.cc | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index e517be5c0d..0913976865 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,8 @@ +3.2.0-dev.394 | 2020-04-14 15:29:00 -0700 + + * Fix a confusing variable name shadowing (Jon Siwek, Corelight) + 3.2.0-dev.392 | 2020-04-14 11:06:04 -0700 * Fix Stack Overflow in POP3_Analyzer::ProcessRequest. (Johanna Amann, Corelight) diff --git a/VERSION b/VERSION index 40af92397c..c5ccf9199b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.0-dev.392 +3.2.0-dev.394 diff --git a/src/Val.cc b/src/Val.cc index 58e78ea4a7..6c24a89471 100644 --- a/src/Val.cc +++ b/src/Val.cc @@ -1341,8 +1341,8 @@ static void find_nested_record_types(BroType* t, std::set* found) return; case TYPE_LIST: { - for ( auto& t : *t->AsTypeList()->Types() ) - find_nested_record_types(t, found); + for ( auto& type : *t->AsTypeList()->Types() ) + find_nested_record_types(type, found); } return; case TYPE_FUNC: