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:
4
menu.cpp
4
menu.cpp
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user