fixed uninitialzied variable which caused unpredictable behavior in some cases (randomly ignoring params during loading .bochsrc)

This commit is contained in:
Stanislav Shwartsman 2013-12-22 20:47:30 +00:00
parent e200d04ad5
commit 52c80539ef

View File

@ -50,6 +50,7 @@ bx_param_c::bx_param_c(Bit32u id, const char *param_name, const char *param_desc
this->long_text_format = default_text_format;
this->runtime_param = 0;
this->enabled = 1;
this->options = 0;
// dependent_list must be initialized before the set(),
// because set calls update_dependents().
dependent_list = NULL;
@ -72,6 +73,7 @@ bx_param_c::bx_param_c(Bit32u id, const char *param_name, const char *param_labe
this->long_text_format = default_text_format;
this->runtime_param = 0;
this->enabled = 1;
this->options = 0;
// dependent_list must be initialized before the set(),
// because set calls update_dependents().
dependent_list = NULL;