From d064b7dad2d003f87f18b6f63675e1ad33b4ed62 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Thu, 13 Jun 2019 09:55:35 +0200 Subject: [PATCH] is_parity: fix unitialized value of max on False return * spot/twa/acc.cc: Here. This fixes two failures on the buildfarm. --- spot/twa/acc.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spot/twa/acc.cc b/spot/twa/acc.cc index 177b6bda9..a564c4968 100644 --- a/spot/twa/acc.cc +++ b/spot/twa/acc.cc @@ -1080,7 +1080,10 @@ namespace spot } if (!equiv) - return false; + { + max = false; + return false; + } if (equiv_codes(code_, max_code)) { @@ -1092,6 +1095,7 @@ namespace spot max = false; return true; } + max = false; return false; }