From 5791065d29571e01916b60af3c77379ec9cdc6d1 Mon Sep 17 00:00:00 2001 From: Felipe Magno de Almeida Date: Thu, 23 Apr 2015 21:24:06 -0300 Subject: [PATCH] Fix uninitialized member by coverity CID 1294558 Initialize the scope member in the default constructor. --- src/lib/eolian_cxx/eo_types.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/eolian_cxx/eo_types.hh b/src/lib/eolian_cxx/eo_types.hh index 987be69740..843c2fab55 100644 --- a/src/lib/eolian_cxx/eo_types.hh +++ b/src/lib/eolian_cxx/eo_types.hh @@ -294,6 +294,8 @@ struct eo_function struct eo_event { + eo_event() : scope(eolian_scope::public_) {} + eolian_scope scope; std::string name; std::string eo_name;