summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index ab76c84..40058fe 100644
--- a/main.c
+++ b/main.c
@@ -223,6 +223,7 @@ static int parse_format(struct v4l2_mbus_framefmt *format, const char *p, char *
height = strtoul(p, &end, 10);
*endp = end;
+ memset(format, 0, sizeof(*format));
format->width = width;
format->height = height;
format->code = mbus_formats[i].code;