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/ff5066091a0d
branches:  trunk
changeset: 943574:ff5066091a0d
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 ce56430b32b2 -r ff5066091a0d 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