From cedfceb9abe2d43b99db80b66f06dca5a0b619e0 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 29 Apr 2002 18:26:46 +0000 Subject: [PATCH] fixed initialization of insn array in comedi_data_read_delayed(), added unnecessary init of ilist --- lib/data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.26.2