Fix use of uninitialized variable (Wsometimes-uninitialized)
This commit is contained in:
parent
099b7695fa
commit
022c42f4c5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user