diff --git a/drivers/video/video.c b/drivers/video/video.c index 21b262c35a..a3ba606b01 100644 --- a/drivers/video/video.c +++ b/drivers/video/video.c @@ -2276,6 +2276,9 @@ static int video_g_ctrl(FAR struct video_mng_s *priv, struct v4l2_ext_control control; int ret; + memset(&ext_controls, 0, sizeof(struct v4l2_ext_controls)); + memset(&control, 0, sizeof(struct v4l2_ext_control)); + if (ctrl == NULL) { return -EINVAL;