diff --git a/src/util/cmdline.h b/src/util/cmdline.h index 1fb10dd298a..c689c8e3447 100644 --- a/src/util/cmdline.h +++ b/src/util/cmdline.h @@ -39,10 +39,19 @@ class cmdlinet protected: struct optiont { - bool isset, hasval, islong; + bool isset; + bool hasval; + bool islong; char optchar; std::string optstring; std::list values; + public: + optiont(): + isset(false), + hasval(false), + islong(false), + optchar(0) + {} }; std::vector options;