John-Mark Gurney <gurne...@efn.org> writes: > Dag-Erling Smorgrav scribbled this message on Jul 20: > > When I allocate memory, I usually intend to put something in it. > > There's always the odd struct sockaddr_in which I bzero() before > > filling it in, but they're usually on the stack. > and even then, I don't believe in filling sockaddr_in w/ bzero, I > believe in using getsockaddr on it so that you actually get all the > fields filled out properly...
See? One less reason to use bzero() / calloc() :) DES -- Dag-Erling Smorgrav - d...@flood.ping.uio.no To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message