From 92ee7358e7e71f4be5e2bda25798687321b83307 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Thu, 19 Nov 2009 11:35:13 +0000 Subject: [PATCH] cb_das16_cs: In das16cs_ai_cmdtest(), initialize div1 and div2 values passed by reference to i8253_cascade_ns_to_timer() (two instances). --- comedi/drivers/cb_das16_cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/cb_das16_cs.c b/comedi/drivers/cb_das16_cs.c index 0ef8e1d9..d1f312e3 100644 --- a/comedi/drivers/cb_das16_cs.c +++ b/comedi/drivers/cb_das16_cs.c @@ -458,7 +458,7 @@ static int das16cs_ai_cmdtest(comedi_device * dev, comedi_subdevice * s, /* step 4: fix up any arguments */ if (cmd->scan_begin_src == TRIG_TIMER) { - unsigned int div1, div2; + unsigned int div1 = 0, div2 = 0; tmp = cmd->scan_begin_arg; i8253_cascade_ns_to_timer(100, &div1, &div2, @@ -467,7 +467,7 @@ static int das16cs_ai_cmdtest(comedi_device * dev, comedi_subdevice * s, err++; } if (cmd->convert_src == TRIG_TIMER) { - unsigned int div1, div2; + unsigned int div1 = 0, div2 = 0; tmp = cmd->convert_arg; i8253_cascade_ns_to_timer(100, &div1, &div2, -- 2.26.2