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)
|
if (!equiv)
|
||||||
|
{
|
||||||
|
max = false;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (equiv_codes(code_, max_code))
|
if (equiv_codes(code_, max_code))
|
||||||
{
|
{
|
||||||
|
|
@ -1092,6 +1095,7 @@ namespace spot
|
||||||
max = false;
|
max = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
max = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue