Skip to content

Commit 444f256

Browse files
committed
Add initial value to languaget::generate_opaque_stubs
The bool member languaget::generate_opaque_stubs does not receive an initial value, and not all contexts using languaget call its setter. Valgrind thus detects a jump based on an uninitialised value. Added explicit initial value `false`.
1 parent 41bafc0 commit 444f256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/language.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class languaget:public messaget
137137

138138
static irep_idt get_stub_return_symbol_name(const irep_idt &function_id);
139139

140-
bool generate_opaque_stubs;
140+
bool generate_opaque_stubs=false;
141141
bool language_options_initialized=false;
142142

143143
private:

0 commit comments

Comments
 (0)