From: Ian Abbott Date: Thu, 19 Nov 2009 11:43:52 +0000 (+0000) Subject: pcl818: In ai_cmd_test(), pcl818_ai_cmd_mode(), and pcl818_ao_mode13(), X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6f4fb465101e027ef5365264839b9680bc87daf4;p=comedi.git pcl818: In ai_cmd_test(), pcl818_ai_cmd_mode(), and pcl818_ao_mode13(), initialize divisor1 and divisor2 values passed by reference to i8153_cascade_ns_to_timer(). --- diff --git a/comedi/drivers/pcl818.c b/comedi/drivers/pcl818.c index 625ef46f..32900bd8 100644 --- a/comedi/drivers/pcl818.c +++ b/comedi/drivers/pcl818.c @@ -958,7 +958,7 @@ static int pcl818_ai_cmd_mode(int mode, comedi_device * dev, comedi_subdevice * s) { comedi_cmd *cmd = &s->async->cmd; - int divisor1, divisor2; + int divisor1 = 0, divisor2 = 0; unsigned int seglen; rt_printk("pcl818_ai_cmd_mode()\n"); @@ -1069,7 +1069,7 @@ static int pcl818_ai_cmd_mode(int mode, comedi_device * dev, static int pcl818_ao_mode13(int mode, comedi_device * dev, comedi_subdevice * s, comedi_trig * it) { - int divisor1, divisor2; + int divisor1 = 0, divisor2 = 0; if (!dev->irq) { comedi_error(dev, "IRQ not defined!"); @@ -1258,7 +1258,7 @@ static int ai_cmdtest(comedi_device * dev, comedi_subdevice * s, comedi_cmd * cmd) { int err = 0; - int tmp, divisor1, divisor2; + int tmp, divisor1 = 0, divisor2 = 0; /* step 1: make sure trigger sources are trivially valid */