From c747a6ff4e1cee35b6d8f66b242ee3c13e400a2f Mon Sep 17 00:00:00 2001 From: Stefan Slapeta Date: Sun, 26 Sep 2004 09:32:04 +0000 Subject: [PATCH] Fix uninitialized variables [SVN r25410] --- src/read_write_mutex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/read_write_mutex.cpp b/src/read_write_mutex.cpp index dd06b527..17a5a4f6 100644 --- a/src/read_write_mutex.cpp +++ b/src/read_write_mutex.cpp @@ -344,7 +344,7 @@ bool read_write_mutex_impl::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::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) {