Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77645 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2012-03-30 09:49:01


Author: steven_watanabe
Date: 2012-03-30 09:49:00 EDT (Fri, 30 Mar 2012)
New Revision: 77645
URL: http://svn.boost.org/trac/boost/changeset/77645

Log:
Fix seg-fault.
Text files modified:
   trunk/tools/build/v2/engine/rules.c | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/engine/rules.c
==============================================================================
--- trunk/tools/build/v2/engine/rules.c (original)
+++ trunk/tools/build/v2/engine/rules.c 2012-03-30 09:49:00 EDT (Fri, 30 Mar 2012)
@@ -472,8 +472,11 @@
 
 void rules_done()
 {
- hashenumerate( targethash, freetarget, 0 );
- hashdone( targethash );
+ if ( targethash )
+ {
+ hashenumerate( targethash, freetarget, 0 );
+ hashdone( targethash );
+ }
     while ( settings_freelist )
     {
         SETTINGS * n = settings_freelist->next;


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