Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/lib/libctf/common fix zeroing



details:   https://anonhg.NetBSD.org/src/rev/ff4335e9db5b
branches:  trunk
changeset: 975786:ff4335e9db5b
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Sep 06 16:44:16 2020 +0000

description:
fix zeroing

diffstat:

 external/cddl/osnet/dist/lib/libctf/common/ctf_lib.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 20befb0af097 -r ff4335e9db5b external/cddl/osnet/dist/lib/libctf/common/ctf_lib.c
--- a/external/cddl/osnet/dist/lib/libctf/common/ctf_lib.c      Sun Sep 06 16:30:41 2020 +0000
+++ b/external/cddl/osnet/dist/lib/libctf/common/ctf_lib.c      Sun Sep 06 16:44:16 2020 +0000
@@ -234,7 +234,7 @@
        bzero(&ctfsect, sizeof (ctf_sect_t));
        bzero(&symsect, sizeof (ctf_sect_t));
        bzero(&strsect, sizeof (ctf_sect_t));
-       bzero(&hdr.ctf, sizeof (hdr));
+       bzero(&hdr, sizeof (hdr));
 
        if (fstat64(fd, &st) == -1)
                return (ctf_set_open_errno(errp, errno));



Home | Main Index | Thread Index | Old Index