Mini-patch for cccp.c
Jeffrey A Law
law@cygnus.com
Tue Oct 7 11:41:00 GMT 1997
In message < 199710070006.UAA23461@caip.rutgers.edu >you write:
> > 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?
This has been a hotly debated topic elsewhere (gdb developers).
There's pros and cons for each. I personally don't prefer one method
over the other.
jeff
More information about the Gcc
mailing list