Skip to content

Commit

Permalink
Fix crash on tuning NULL tune
Browse files Browse the repository at this point in the history
  • Loading branch information
WiseLord committed Sep 1, 2021
1 parent ac7f78a commit 47a1a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/canvas.c
Expand Up @@ -698,7 +698,7 @@ void canvasShowTune(bool clear, AudioTune tune)

char bufValue[16] = "";

if (grid->array != NULL) {
if (grid != NULL && grid->array != NULL) {
showValue = grid->array[value];
}

Expand Down

0 comments on commit 47a1a2a

Please sign in to comment.