eolian_cxx: initialize all members in a struct correctly
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Mon, 8 Jun 2015 09:48:22 +0000 (10:48 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Mon, 8 Jun 2015 09:48:22 +0000 (10:48 +0100)
Fixes CID 1298133.

@fix

src/lib/eolian_cxx/eo_types.hh

index 431ba05..4431d3b 100644 (file)
@@ -295,8 +295,10 @@ struct eo_function
 
 struct eo_event
 {
-   eo_event() : scope(eolian_scope::public_) {}
-  
+   eo_event() : scope(eolian_scope::public_), is_beta(false), name(),
+                eo_name(), comment()
+   {}
+
    eolian_scope scope;
    bool is_beta;
    std::string name;