Skip to content

Commit

Permalink
Merge pull request #499 from mgudemann/fix_init_bool_values_cmdline
Browse files Browse the repository at this point in the history
specify initial values for Boolean in struct optiont
  • Loading branch information
Daniel Kroening authored Feb 3, 2017
2 parents 3e40add + c261978 commit a764874
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/util/cmdline.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> values;
public:
optiont():
isset(false),
hasval(false),
islong(false),
optchar(0)
{}
};

std::vector<optiont> options;
Expand Down

0 comments on commit a764874

Please sign in to comment.