diff -r 7fdaa05a69a1 -r 00f8d9f9920d test/bellman_ford_test.cc --- a/test/bellman_ford_test.cc Thu Sep 13 11:56:19 2012 +0200 +++ b/test/bellman_ford_test.cc Thu Sep 13 12:02:27 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.");