pcl816: In pcl816_ai_cmdtest(), initialize divisor1 and divisor2 values
authorIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:39:10 +0000 (11:39 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2009 11:39:10 +0000 (11:39 +0000)
passed by reference to i8253_cascase_ns_to_timer().

comedi/drivers/pcl816.c

index bd62f653209e67b369ebc9c8603131e18ded6a7f..b5ca45bbf71f336cfeacc6a14d72c955740a8d19 100644 (file)
@@ -462,7 +462,7 @@ static int pcl816_ai_cmdtest(comedi_device * dev, comedi_subdevice * s,
        comedi_cmd * cmd)
 {
        int err = 0;
-       int tmp, divisor1, divisor2;
+       int tmp, divisor1 = 0, divisor2 = 0;
 
        DEBUG(rt_printk("pcl816 pcl812_ai_cmdtest\n");
                pcl816_cmdtest_out(-1, cmd););