diff -r 2da3de1c0ebe -r 08712a8c3afe test/bellman_ford_test.cc --- a/test/bellman_ford_test.cc Wed Sep 12 17:29:50 2012 +0200 +++ b/test/bellman_ford_test.cc Thu Sep 13 12:05:34 2012 +0200 @@ -190,7 +190,7 @@ check(pathTarget(gr, p) == t, "path() found a wrong path."); ListPath path; - Value dist; + Value dist = 0; bool reached = bellmanFord(gr,length).path(path).dist(dist).run(s,t); check(reached && dist == -1, "Bellman-Ford found a wrong path.");