tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: should rt_msg1() zero rt_msghdr?



On May 16,  3:33pm, jtc%acorntoolworks.com@localhost (J.T. Conklin) wrote:
-- Subject: Re: should rt_msg1() zero rt_msghdr?

| christos%zoulas.com@localhost (Christos Zoulas) writes:
| > I think this is right. Should the same be done in rt_msg2()?
| 
| Unlike rt_msg1(), rt_msg2() is passed the struct that will be filled
| in.  I looked at all callers, and it appears that in each case it is
| zeroed before rt_msg2() is called.  So it while it wouldn't hurt, it
| does not look like it's necessary.
| 
|     --jtc

Great, let's just zero the one in rt_msg1().

christos


Home | Main Index | Thread Index | Old Index