This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git

commit 69b66a51f2d86746b78300fdf43dd098d6eac7cb
Author: Jens Geyer <[email protected]>
AuthorDate: Sat Jan 29 18:42:01 2022 +0100

    THRIFT-5506 C26495 variable "t_field::req_" not initialized, t_field.h:40
    Compiler General
    Patch: Jens Geyer
---
 compiler/cpp/src/thrift/parse/t_field.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler/cpp/src/thrift/parse/t_field.h 
b/compiler/cpp/src/thrift/parse/t_field.h
index 4be8770..f0a607d 100644
--- a/compiler/cpp/src/thrift/parse/t_field.h
+++ b/compiler/cpp/src/thrift/parse/t_field.h
@@ -41,6 +41,7 @@ public:
     : type_(type),
       name_(name),
       key_(0),
+         req_(T_OPT_IN_REQ_OUT),
       value_(nullptr),
       xsd_optional_(false),
       xsd_nillable_(false),

Reply via email to