Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67014 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2010-12-04 15:49:50


Author: jewillco
Date: 2010-12-04 15:49:49 EST (Sat, 04 Dec 2010)
New Revision: 67014
URL: http://svn.boost.org/trac/boost/changeset/67014

Log:
Fixed uninitialized variables
Text files modified:
   trunk/boost/graph/stoer_wagner_min_cut.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/graph/stoer_wagner_min_cut.hpp
==============================================================================
--- trunk/boost/graph/stoer_wagner_min_cut.hpp (original)
+++ trunk/boost/graph/stoer_wagner_min_cut.hpp 2010-12-04 15:49:49 EST (Sat, 04 Dec 2010)
@@ -74,7 +74,8 @@
       
       assert(pq.size() >= 2);
       
- vertex_descriptor s, t;
+ vertex_descriptor s = boost::graph_traits<UndirectedGraph>::null_vertex();
+ vertex_descriptor t = boost::graph_traits<UndirectedGraph>::null_vertex();
       weight_type w;
       while (!pq.empty()) { // while PQ \neq {} do
         const vertex_descriptor u = pq.top(); // u = extractmax(PQ)


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