This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: libv4l2: zero v4l2_buffer Author: Tianyu Chen <[email protected]> Date: Wed Sep 17 17:00:34 2025 +0800 v4l2_buffer should be zeroed. Signed-off-by: Tianyu Chen <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> lib/libv4l2/libv4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=72b8c5ce5167645defb697baa7d7973f87ca2cb8 diff --git a/lib/libv4l2/libv4l2.c b/lib/libv4l2/libv4l2.c index 289501d96c26..06396abb2c09 100644 --- a/lib/libv4l2/libv4l2.c +++ b/lib/libv4l2/libv4l2.c @@ -1584,7 +1584,7 @@ ssize_t v4l2_read(int fd, void *dest, size_t n) if (devices[index].flags & V4L2_USE_READ_FOR_READ) { result = v4l2_read_and_convert(index, dest, n); } else { - struct v4l2_buffer buf; + struct v4l2_buffer buf = {}; buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; buf.memory = V4L2_MEMORY_MMAP;
