A couple of the data members in the Gogo class were not
being initialized properly. This was causing "uninitialized value"
errors during Valgrind memcheck runs. This patch insures that
all of the fields receive an initial value.
Reviewed-on: https://go-review.googlesource.com/38470
From-SVN: r246407
if (args->relative_import_path != NULL)
::gogo->set_relative_import_path(args->relative_import_path);
- if (args->check_divide_by_zero)
- ::gogo->set_check_divide_by_zero(args->check_divide_by_zero);
- if (args->check_divide_overflow)
- ::gogo->set_check_divide_overflow(args->check_divide_overflow);
+ ::gogo->set_check_divide_by_zero(args->check_divide_by_zero);
+ ::gogo->set_check_divide_overflow(args->check_divide_overflow);
if (args->compiling_runtime)
::gogo->set_compiling_runtime(args->compiling_runtime);
if (args->c_header != NULL)
pkgpath_from_option_(false),
prefix_from_option_(false),
relative_import_path_(),
+ c_header_(),
+ check_divide_by_zero_(true),
+ check_divide_overflow_(true),
+ compiling_runtime_(false),
+ debug_escape_level_(0),
verify_types_(),
interface_types_(),
specific_type_functions_(),