13
0

fix uninitialized pointer error in launch control code

This commit is contained in:
Paul Davis 2018-08-07 10:43:37 -04:00
parent fb4ff01a18
commit 87b745face

View File

@ -270,7 +270,7 @@ LaunchControlXL::track_button_by_number(uint8_t n, uint8_t first, uint8_t middle
b = nn_note_button_map.find (middle + n);
}
TrackButton* button;
TrackButton* button = 0;
if (b != nn_note_button_map.end()) {
button = static_cast<TrackButton*>(b->second);