781ca0c97d
gcc-11.3.0 issues a -Wmaybe-uninitialized warning for `exit_side`. Reorder the code to eliminate this warning. Also, fix a potential out-of-bounds read if `matt_find_connect_side` returned `side_none`. Before, this would lead to a read of `Side_opposite[side_none]` before the test that `entry_side` is not `side_none`. Now, if `matt_find_connect_side` returns `side_none`, the read of `Side_opposite` is skipped and logic goes directly to finding a proper exit side. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |