mirror of
https://github.com/boostorg/thread.git
synced 2026-01-23 06:02:14 +00:00
Fix uninitialized variables
[SVN r25410]
This commit is contained in:
@@ -344,7 +344,7 @@ bool read_write_mutex_impl<Mutex>::do_timed_read_lock(const boost::xtime &xt)
|
||||
if (!l.locked())
|
||||
return false;
|
||||
|
||||
bool fail;
|
||||
bool fail = false;
|
||||
|
||||
if (m_sp == read_write_scheduling_policy::reader_priority)
|
||||
{
|
||||
@@ -460,7 +460,7 @@ bool read_write_mutex_impl<Mutex>::do_timed_write_lock(const boost::xtime &xt)
|
||||
if (!l.locked())
|
||||
return false;
|
||||
|
||||
bool fail;
|
||||
bool fail = false;
|
||||
|
||||
if (m_sp == read_write_scheduling_policy::reader_priority)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user