From: Frank Mori Hess Date: Fri, 20 Apr 2001 22:43:20 +0000 (+0000) Subject: fixed initialization of comedi_device bug due to sizeof returning size of pointer... X-Git-Tag: r0_7_59~101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c0e1135692e2a32f8af7b0f962e4d6529bed0020;p=comedi.git fixed initialization of comedi_device bug due to sizeof returning size of pointer instead of object --- diff --git a/comedi/drivers.c b/comedi/drivers.c index 2d03e41b..cc45c86b 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -106,7 +106,7 @@ int comedi_device_attach(comedi_device *dev,comedi_devconfig *it) minor = dev->minor; use_count = dev->use_count; - memset(dev,0,sizeof(dev)); + memset(dev,0,sizeof(comedi_device)); dev->minor=minor; dev->use_count = use_count;