Skip to content

Commit

Permalink
Avoid setting unknown field of dirent
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Dec 8, 2023
1 parent 184bc08 commit 81cd1f4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion iop/net_fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,6 @@ int pko_read_dir(int fd, void *buf)
dirent->stat.hisize = ntohl(dirrly->hisize);
memcpy(dirent->stat.ctime, dirrly->ctime, 8 * 3);
strncpy(dirent->name, dirrly->name, 256);
dirent->unknown = 0;

return ntohl(dirrly->retval);
}
Expand Down

0 comments on commit 81cd1f4

Please sign in to comment.