On 19 Oct 2022 16:24, Andrew Burgess via Gdb-patches wrote: > --- a/sim/ppc/emul_netbsd.c > +++ b/sim/ppc/emul_netbsd.c > @@ -888,6 +888,8 @@ do_fstat(os_emul_data *emul, > status = fdbad (fd); > if (status == 0) > status = fstat(fd, &buf); > + else > + memset (&buf, 0, sizeof (buf)); i don't think this is perf critical, so simpler to do: struct statfs buf = {}; -mike