Add missing member initializer in Edge constructor
authorBrad King <brad.king@kitware.com>
Tue, 16 Jun 2015 17:38:55 +0000 (13:38 -0400)
committerBrad King <brad.king@kitware.com>
Tue, 16 Jun 2015 17:38:55 +0000 (13:38 -0400)
In commit v1.1.0^2~15^2~20 (stub out an api and de-constify Pool,
2012-10-03) the Edge "pool_" member was added as a raw pointer but the
initializer was accidentally left out of the constructor.  Add it now.

src/graph.h

index 9526712..5f8d41a 100644 (file)
@@ -122,7 +122,8 @@ private:
 
 /// An edge in the dependency graph; links between Nodes using Rules.
 struct Edge {
-  Edge() : rule_(NULL), env_(NULL), outputs_ready_(false), deps_missing_(false),
+  Edge() : rule_(NULL), pool_(NULL), env_(NULL),
+           outputs_ready_(false), deps_missing_(false),
            implicit_deps_(0), order_only_deps_(0) {}
 
   /// Return true if all inputs' in-edges are ready.