summaryrefslogtreecommitdiff
path: root/v4l_experimental
diff options
context:
space:
mode:
authorMike Isely <devnull@localhost>2005-12-02 14:03:10 +0000
committerMike Isely <devnull@localhost>2005-12-02 14:03:10 +0000
commitfdd20a18ed91a5c1e62884237eb40f1008a7f91f (patch)
tree0b358d24cee4d203fde69170547c992501b9f940 /v4l_experimental
parentcdda4f559abb11c1249138a04534edc817c297e5 (diff)
downloadmediapointer-dvb-s2-fdd20a18ed91a5c1e62884237eb40f1008a7f91f.tar.gz
mediapointer-dvb-s2-fdd20a18ed91a5c1e62884237eb40f1008a7f91f.tar.bz2
Clear v4l2_frequency structure before using it
-Need to clear v4l2_frequency structure to zero before using it, in order that newly added fields (that we otherwise would not care about) will take proper default values. From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'v4l_experimental')
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-tuner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-tuner.c b/v4l_experimental/pvrusb2/pvrusb2-tuner.c
index fcde1436a..ff94c1da2 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-tuner.c
+++ b/v4l_experimental/pvrusb2/pvrusb2-tuner.c
@@ -1,6 +1,6 @@
/*
*
- * $Id: pvrusb2-tuner.c,v 1.4 2005/12/02 13:59:00 mcisely Exp $
+ * $Id: pvrusb2-tuner.c,v 1.5 2005/12/02 14:03:10 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
@@ -64,6 +64,7 @@ int pvr2_tuner_set_freq(struct pvr2_hdw *hdw)
{
int stat;
struct v4l2_frequency freq;
+ memset(&freq,0,sizeof(freq));
freq.frequency = hdw->controls[PVR2_CID_FREQUENCY].value / 62500;
freq.tuner = 0;
freq.type = V4L2_TUNER_ANALOG_TV;