From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab To: "Kaveh R. Ghazi" Cc: Thomas.Koenig@ciw.uni-karlsruhe.de, egcs@cygnus.com Subject: Re: Mini-patch for cccp.c Date: Tue, 07 Oct 1997 03:48:00 -0000 Message-id: References: <199710070006.UAA23461@caip.rutgers.edu> X-SW-Source: 1997-10/msg00262.html Kaveh R Ghazi writes: |>> 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? Pedantically this won't work for pointers in the structure, ie. they still have to be initialized explicitly. Or initialize it with a prototype static variable that is implicitly initialized. -- Andreas Schwab "And now for something schwab@issan.informatik.uni-dortmund.de completely different"