fixed initialization of insn array in comedi_data_read_delayed(), added unnecessary
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 29 Apr 2002 18:26:46 +0000 (18:26 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 29 Apr 2002 18:26:46 +0000 (18:26 +0000)
init of ilist

lib/data.c

index f67914d8bd134e077b7315d3615ed43c3ed3bb22..590c37f1109c30fc4b556f5fd27cc1adcdd71be5 100644 (file)
@@ -186,7 +186,8 @@ int comedi_data_read_delayed( comedi_t *it, unsigned int subdev, unsigned int ch
 
        s = it->subdevices + subdev;
 
-       memset(&insn,0,sizeof(insn));
+       memset( insn, 0, sizeof(insn) );
+       memset( ilist, 0, sizeof(ilist) );
 
        // setup, no conversions
        insn[0].insn = INSN_READ;