xbox.c: Fix null string warning

This commit is contained in:
Matt Borgerson 2023-01-23 00:30:40 -07:00
parent 38f294c58a
commit 3afd8456d5
1 changed files with 1 additions and 1 deletions
hw/xbox

View File

@ -98,7 +98,7 @@ static void xbox_flash_init(MachineState *ms, MemoryRegion *rom_memory)
}
if (failed_to_load_bios) {
fprintf(stderr, "Failed to load BIOS '%s'\n", filename);
fprintf(stderr, "Failed to load BIOS '%s'\n", filename ? filename : "(null)");
memset(bios_data, 0xff, bios_size);
}
if (filename != NULL) {