Date: Wed, 16 Aug 2006 01:54:49 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 104170 for review Message-ID: <200608160154.k7G1sn6f095682@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104170 Change 104170 by jb@jb_freebsd2 on 2006/08/16 01:54:35 Zero the allocated memory to reset everything to a known default. Then it is only necessary to set the variables that aren't zero by default. Affected files ... .. //depot/projects/dtrace/src/lib/libelf/elf_allocate.c#3 edit Differences ... ==== //depot/projects/dtrace/src/lib/libelf/elf_allocate.c#3 (text+ko) ==== @@ -49,6 +49,8 @@ return NULL; } + memset(e, 0, sizeof(*e)); + e->e_kind = ELF_K_NONE; e->e_class = ELFCLASSNONE; e->e_cmd = ELF_C_NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608160154.k7G1sn6f095682>