Skip to content

Commit e23d216

Browse files
romainbrenguierPetr Bauch
authored and
Petr Bauch
committed
Give default value to boolean fields
Boolean fields are not initialized by default.
1 parent 58bafea commit e23d216

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jbmc/src/java_bytecode/java_bytecode_parse_tree.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ struct java_bytecode_parse_treet
8686
struct methodt : public membert
8787
{
8888
irep_idt base_name;
89-
bool is_native, is_abstract, is_synchronized, is_bridge, is_varargs;
89+
bool is_native = false, is_abstract = false, is_synchronized = false,
90+
is_bridge = false, is_varargs = false;
9091
source_locationt source_location;
9192

9293
typedef std::vector<instructiont> instructionst;

0 commit comments

Comments
 (0)