diff --git a/BGL/test/BGL/test_split.cpp b/BGL/test/BGL/test_split.cpp index f9b6fff3ced..9c13a2d0307 100644 --- a/BGL/test/BGL/test_split.cpp +++ b/BGL/test/BGL/test_split.cpp @@ -24,7 +24,8 @@ typedef std::vector Polyline_2; // inserts a polyline into a graph void insert(const std::vector& poly, Graph& graph, Point_vertex_map& pvmap) { - vertex_descriptor u, v; + vertex_descriptor u = boost::graph_traits::null_vertex(); + vertex_descriptor v; for (std::size_t i = 0; i < poly.size(); i++) { // check if the point is not yet in the graph if (pvmap.find(poly[i]) == pvmap.end()) {