From d08fb255a29d8c5b51b06a71d866dc86bf0d4551 Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 6 Sep 2021 13:29:08 +0100 Subject: router2: Fix uninitialised values Signed-off-by: gatecat --- common/router2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/router2.cc b/common/router2.cc index cb8e875f..1f9196ab 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -92,7 +92,7 @@ struct Router2 int16_t x = 0, y = 0; // Visit data PipId pip_fwd, pip_bwd; - bool visited_fwd, visited_bwd; + bool visited_fwd = false, visited_bwd = false; }; Context *ctx; -- cgit v1.2.3