mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 03:11:16 +00:00
nyx: check if emuMMC path is null before producing the ID
This commit is contained in:
parent
0160df7fb9
commit
000ea3096a
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ void save_emummc_cfg(u32 part_idx, u32 sector_start, const char *path)
|
|||
|
||||
// Get ID from path.
|
||||
u32 id_from_path = 0;
|
||||
if (strlen(path) >= 4)
|
||||
if (path && strlen(path) >= 4)
|
||||
memcpy(&id_from_path, path + strlen(path) - 4, 4);
|
||||
f_puts("\nid=0x", &fp);
|
||||
itoa(id_from_path, lbuf, 16);
|
||||
|
|
Loading…
Reference in a new issue