bugfix
authorDavid Schleef <ds@schleef.org>
Wed, 17 Jan 2001 22:05:25 +0000 (22:05 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 17 Jan 2001 22:05:25 +0000 (22:05 +0000)
comedi/drivers.c

index f15395c2c211b98b06d149468666b6950c1461eb..c6cc7cc8b405e0c05727de0c0770c8df58d0942c 100644 (file)
@@ -101,7 +101,7 @@ int comedi_device_attach(comedi_device *dev,comedi_devconfig *it)
        use_count = dev->use_count;
        memset(dev,0,sizeof(dev));
        dev->minor=minor;
-       dev->use_count = dev->use_count;
+       dev->use_count = use_count;
        dev->read_subdev=-1;
        dev->write_subdev=-1;