Skip to content

Commit

Permalink
Fix instances of -Wmaybe-uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Aug 28, 2022
1 parent b1d3ce7 commit 28e5e18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ int CheckPS2Logo(int fd, u32 lba)
char text[1024];

w = 0;
memset(logo, 0, sizeof(logo));
if ((fd > 0) && (lba == 0)) { // BDM_MODE & ETH_MODE
lseek(fd, 0, SEEK_SET);
w = read(fd, logo, sizeof(logo)) == sizeof(logo);
Expand Down

0 comments on commit 28e5e18

Please sign in to comment.