Skip to content

Commit

Permalink
V4L/DVB (4238): Make sure flags field is initialized when quering a c…
Browse files Browse the repository at this point in the history
…ontrol in pvrusb2

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed Jun 27, 2006
1 parent 4f1a3e5 commit 077203a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/pvrusb2/pvrusb2-v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file,
}

strlcpy(vc->name,pvr2_ctrl_get_name(cptr),sizeof(vc->name));
vc->flags = 0;
vc->default_value = pvr2_ctrl_get_def(cptr);
switch (pvr2_ctrl_get_type(cptr)) {
case pvr2_ctl_enum:
Expand Down

0 comments on commit 077203a

Please sign in to comment.