From: Frank Mori Hess Date: Mon, 29 Apr 2002 18:26:46 +0000 (+0000) Subject: fixed initialization of insn array in comedi_data_read_delayed(), added unnecessary X-Git-Tag: r0_7_19~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cedfceb9abe2d43b99db80b66f06dca5a0b619e0;p=comedilib.git fixed initialization of insn array in comedi_data_read_delayed(), added unnecessary init of ilist --- diff --git a/lib/data.c b/lib/data.c index f67914d..590c37f 100644 --- a/lib/data.c +++ b/lib/data.c @@ -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;