menu: Initialize variables before use

Initialize `rdb` and `m` to zero at the top of `HandleUI` before they
are accessed.
This commit is contained in:
David Holm
2018-12-29 12:15:39 +01:00
parent d16b899c95
commit e144cd713f

View File

@@ -678,12 +678,12 @@ void HandleUI(void)
return;
}
struct RigidDiskBlock *rdb;
struct RigidDiskBlock *rdb = nullptr;
static char opensave;
char *p;
char s[40];
unsigned char m, up, down, select, menu, right, left, plus, minus;
unsigned char m = 0, up, down, select, menu, right, left, plus, minus;
uint8_t mod;
unsigned long len;
char enable;