This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mini-patch for cccp.c
- To: Thomas dot Koenig at ciw dot uni-karlsruhe dot de, egcs at cygnus dot com
- Subject: Re: Mini-patch for cccp.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Mon, 6 Oct 1997 20:06:25 -0400 (EDT)
> Tue Sep 30 16:50:55 CEST 1997 Thomas Koenig (ig25@rz.uni-karlsruhe.de)
>
> * cccp.c:
> (expand_to_temp_buffer) initialize all members of obuf
Having to remember to init structure members when new ones are
added is prone to error. Isn't it better to do bzero(&foo, sizeof(foo))
and then set any non zero members?
--
Kaveh R. Ghazi Project Manager
ghazi@caip.rutgers.edu ICon CMT Corp.