Skip to content

Commit bae4080

Browse files
tempozvprus
authored andcommitted
Explicitly initialize m_implicit
m_implicit was previously uninitialized in this constructor, leading to possibly inconsistent functionality. Instead, we now initialize it to false. This issue is related to Coverity CID10559 and was uncovered by Coverity.
1 parent c724b80 commit bae4080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/program_options/value_semantic.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ namespace boost { namespace program_options {
191191
the value when it's known. The parameter can be NULL. */
192192
typed_value(T* store_to)
193193
: m_store_to(store_to), m_composing(false),
194-
m_multitoken(false), m_zero_tokens(false),
195-
m_required(false)
194+
m_implicit(false), m_multitoken(false),
195+
m_zero_tokens(false), m_required(false)
196196
{}
197197

198198
/** Specifies default value, which will be used

0 commit comments

Comments
 (0)