summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2009-03-06 22:37:58 -0600
committerMike Isely <isely@pobox.com>2009-03-06 22:37:58 -0600
commit98489577d3b3394896046026d693d350abf659c5 (patch)
treeb058d567f022d46e43f93c2502d765d0bc47080a /linux/drivers/media/video
parent0fd2fbc142962b497d3a0edd2ff43c07b085d674 (diff)
downloadmediapointer-dvb-s2-98489577d3b3394896046026d693d350abf659c5.tar.gz
mediapointer-dvb-s2-98489577d3b3394896046026d693d350abf659c5.tar.bz2
pvrusb2: Fix uninitialized counter
From: Mike Isely <isely@pobox.com> Priority: normal Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 3753c3cff..e6411e2c4 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -1996,7 +1996,7 @@ static unsigned int pvr2_copy_i2c_addr_list(
unsigned short *dst, const unsigned char *src,
unsigned int dst_max)
{
- unsigned int cnt;
+ unsigned int cnt = 0;
if (!src) return 0;
while (src[cnt] && (cnt + 1) < dst_max) {
dst[cnt] = src[cnt];