Initialize a member value correctly to prevent from crash
_langType in CmdLineParamsDTO could not be copied so Initialize its value to prevent from the crash. Close #5838
This commit is contained in:
parent
34cd6db3be
commit
bfd8cd0702
|
@ -251,7 +251,7 @@ struct CmdLineParamsDTO
|
||||||
int _column2go = 0;
|
int _column2go = 0;
|
||||||
int _pos2go = 0;
|
int _pos2go = 0;
|
||||||
|
|
||||||
LangType _langType;
|
LangType _langType = L_EXTERNAL;
|
||||||
|
|
||||||
static CmdLineParamsDTO FromCmdLineParams(const CmdLineParams& params)
|
static CmdLineParamsDTO FromCmdLineParams(const CmdLineParams& params)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue