Skip to content

Commit 9a0728e

Browse files
committed
specify initial values for Boolean in struct optiont
Gave read of uninitilized Boolean value. Just a cleanup, no effect apart from observation via UB check.
1 parent da0b0d5 commit 9a0728e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/cmdline.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class cmdlinet
3939
protected:
4040
struct optiont
4141
{
42-
bool isset, hasval, islong;
42+
bool isset=false;
43+
bool hasval=false;
44+
bool islong=false;
4345
char optchar;
4446
std::string optstring;
4547
std::list<std::string> values;

0 commit comments

Comments
 (0)