Skip to content

Commit

Permalink
specify initial values for Boolean in struct optiont
Browse files Browse the repository at this point in the history
Gave read of uninitilized Boolean value. Just a cleanup, no effect apart from
observation via UB check.
  • Loading branch information
mgudemann committed Feb 3, 2017
1 parent da0b0d5 commit 9a0728e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/cmdline.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class cmdlinet
protected:
struct optiont
{
bool isset, hasval, islong;
bool isset=false;
bool hasval=false;
bool islong=false;
char optchar;
std::string optstring;
std::list<std::string> values;
Expand Down

0 comments on commit 9a0728e

Please sign in to comment.