Hi, Another malloc & memset => calloc.
Index: parse.c =================================================================== RCS file: /cvs/src/lib/libusbhid/parse.c,v retrieving revision 1.7 diff -u -p -u -r1.7 parse.c --- parse.c 16 Jul 2012 19:57:17 -0000 1.7 +++ parse.c 25 Apr 2014 00:29:52 -0000 @@ -91,10 +91,9 @@ hid_start_parse(report_desc_t d, int kin { struct hid_data *s; - s = malloc(sizeof *s); + s = calloc(1, sizeof *s); if (s == NULL) return (NULL); - memset(s, 0, sizeof *s); s->start = s->p = d->data; s->end = d->data + d->size; s->kindset = kindset; -- Peter Malone <pe...@petermalone.org>