Fix variable initializtion warnings

This commit is contained in:
Alexander Babikov
2022-04-14 07:01:52 +05:00
parent 4e82d93729
commit 911821434e
4 changed files with 4 additions and 4 deletions

View File

@@ -94,7 +94,7 @@ rom_fopen(char *fn, char *mode)
{
char temp[1024];
rom_path_t *rom_path = &rom_paths;
FILE *fp;
FILE *fp = NULL;
if (strstr(fn, "roms/") == fn) {
/* Relative path */

View File

@@ -405,7 +405,7 @@ void
spd_write_drbs_with_ext(uint8_t *regs, uint8_t reg_min, uint8_t reg_max, uint8_t drb_unit)
{
uint8_t row, dimm, drb;
uint16_t size, row_val, rows[SPD_MAX_SLOTS];
uint16_t size, row_val = 0, rows[SPD_MAX_SLOTS];
int shift;
/* No SPD: split SIMMs into pairs as if they were "DIMM"s. */