This is an automated email from the ASF dual-hosted git repository.
thiru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new 52d670f72 AVRO-3712: Fix build by initializing union (#2079)
52d670f72 is described below
commit 52d670f72dbb35e06755bd288ab6eca84a3920a5
Author: jmccl <[email protected]>
AuthorDate: Mon Feb 6 19:38:21 2023 -0800
AVRO-3712: Fix build by initializing union (#2079)
Co-authored-by: jmccl <[email protected]>
---
lang/c++/api/Reader.hh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lang/c++/api/Reader.hh b/lang/c++/api/Reader.hh
index ca6a719e3..588a91264 100644
--- a/lang/c++/api/Reader.hh
+++ b/lang/c++/api/Reader.hh
@@ -84,7 +84,7 @@ public:
union {
double d;
uint64_t i;
- } v;
+ } v = { 0 };
reader_.read(v.i);
val = v.d;
}