From c0e1135692e2a32f8af7b0f962e4d6529bed0020 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 20 Apr 2001 22:43:20 +0000 Subject: [PATCH] fixed initialization of comedi_device bug due to sizeof returning size of pointer instead of object --- comedi/drivers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2