added initialization of async->cur_chan and cur_chanlist_len to comedi_command() r0_7_61
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 16 Nov 2001 20:59:49 +0000 (20:59 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 16 Nov 2001 20:59:49 +0000 (20:59 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 08d5d7c1c4191abb46cddc8a67da3e6bb785683c..1f2b22996d1faacdb2642cc9d6d23a51e1a5f53f 100644 (file)
@@ -398,6 +398,8 @@ int comedi_command(unsigned int minor,comedi_cmd *cmd)
 
        async->data = cmd->data;
        async->data_len = cmd->data_len;
+       async->cur_chan = 0;
+       async->cur_chanlist_len = cmd->chanlist_len;
 
        return s->do_cmd(dev,s);
 }