diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-09 11:20:14 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-09 11:20:14 -0300 |
commit | 6e7f488a79d3ba3c4ee10c3164b7e02deee26179 (patch) | |
tree | efafc7865a126fd035b3cd0cd0164c82d0a53d54 /linux/drivers/media/video/bttv-risc.c | |
parent | f16eab598e3797f7d69f1726eb79f13365eb5a82 (diff) | |
download | mediapointer-dvb-s2-6e7f488a79d3ba3c4ee10c3164b7e02deee26179.tar.gz mediapointer-dvb-s2-6e7f488a79d3ba3c4ee10c3164b7e02deee26179.tar.bz2 |
Nskips maybe used uninitialized in bttv_risc_overlay
The Coverity checker (previously Stanford checker) noticed that
the value of nskips could be read even if it was never written.
Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/bttv-risc.c')
-rw-r--r-- | linux/drivers/media/video/bttv-risc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/bttv-risc.c b/linux/drivers/media/video/bttv-risc.c index 4efe74dd8..512ea01ee 100644 --- a/linux/drivers/media/video/bttv-risc.c +++ b/linux/drivers/media/video/bttv-risc.c @@ -277,6 +277,8 @@ bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, if (line > maxy) btcx_calc_skips(line, ov->w.width, &maxy, skips, &nskips, ov->clips, ov->nclips); + else + nskips = 0; /* write out risc code */ for (start = 0, skip = 0; start < ov->w.width; start = end) { |