Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2008-06-05 05:30:40


Author: vladimir_prus
Date: 2008-06-05 05:30:40 EDT (Thu, 05 Jun 2008)
New Revision: 46159
URL: http://svn.boost.org/trac/boost/changeset/46159

Log:
Fix uninitialized variable.

Valgrind complains if any data passed to a syscall is uninitialized,
even though logically, kernel will not use part of it. This commit
shuts down the warning.

Text files modified:
   trunk/boost/test/impl/execution_monitor.ipp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/test/impl/execution_monitor.ipp
==============================================================================
--- trunk/boost/test/impl/execution_monitor.ipp (original)
+++ trunk/boost/test/impl/execution_monitor.ipp 2008-06-05 05:30:40 EDT (Thu, 05 Jun 2008)
@@ -667,7 +667,7 @@
         ::alarm( 0 );
 
 #ifdef BOOST_TEST_USE_ALT_STACK
- stack_t sigstk;
+ stack_t sigstk = {};
 
     sigstk.ss_flags = SS_DISABLE;
     BOOST_TEST_SYS_ASSERT( ::sigaltstack( &sigstk, 0 ) != -1 );


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk