is_parity: fix unitialized value of max on False return
* spot/twa/acc.cc: Here. This fixes two failures on the buildfarm.
This commit is contained in:
parent
b4da0cf660
commit
d064b7dad2
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue