This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/2] Initialize all of datahead structure in nscd [BZ #16791]
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 1 Apr 2014 11:26:16 -0700 (PDT)
- Subject: Re: [PATCH 2/2] Initialize all of datahead structure in nscd [BZ #16791]
- Authentication-results: sourceware.org; auth=none
- References: <20140401164104 dot GH16484 at spoyarek dot pnq dot redhat dot com>
If you bzero before explicitly filling fields, does the compiler optimize
to only zeroing the one unused field? If so, that seems more futureproof.