Re: logitec usb wireless mouse

From: <mw_at_kpnqwest.ch>
Date: Sun, 6 Feb 2005 13:35:40 +0100 (CET)
> > +       bzero (&h, sizeof (h));
> >         for (d = hid_start_parse(buf, len, 1<<k); hid_get_item(d, &h); )
> > -               if (h.report_ID != 0)
> > +               if (h.report_ID != 0 && !id)
> 
> Is the real magic the "&& !id"?  My read of the code doesn't see the need
> for the bzero as hid_get_item should be filling 'h'.

Yup, I'm just the paranoid type of person who likes to have properly
(as opposed to magically;-)) initialized structures.

Markus
Received on Sun Feb 06 2005 - 11:35:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC