efl-csharp: Fix uninitialized struct.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Thu, 7 Mar 2019 16:06:33 +0000 (13:06 -0300)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 14 Mar 2019 05:46:27 +0000 (14:46 +0900)
Summary:
Could trigger bogus generation with phantom calls thinking beta is
enabled from the want_beta field of the options struct.

Reviewers: vitor.sousa

Reviewed By: vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8151

src/bin/eolian_mono/eolian_mono.cc

index 58c725c..e3cbe5f 100644 (file)
@@ -309,7 +309,7 @@ _assert_not_dup(std::string option, std::string value)
 static eolian_mono::options_type
 opts_get(int argc, char **argv)
 {
-   eolian_mono::options_type opts;
+   eolian_mono::options_type opts{};
 
    const struct option long_options[] =
      {