diff -r b6347aae6575 -r 404b98971e1f test/bellman_ford_test.cc --- a/test/bellman_ford_test.cc Wed Sep 12 17:34:01 2012 +0200 +++ b/test/bellman_ford_test.cc Thu Sep 13 12:13:19 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.");