Fix use of uninitialized variable (Wsometimes-uninitialized)

This commit is contained in:
David Robillard 2021-05-28 12:18:44 -04:00
parent 099b7695fa
commit 022c42f4c5

View File

@ -2922,7 +2922,7 @@ Editor::snap_to_marker (samplepos_t presnap, RoundMode direction)
test = after;
} else if ((direction == RoundDownMaybe || direction == RoundDownAlways)) {
test = before;
} else if (direction == 0) {
} else {
if ((presnap - before) < (after - presnap)) {
test = before;
} else {